Class: TransitController

Inherits:
InheritedResources::Base
  • Object
show all
Defined in:
app/controllers/transit_controller.rb

Instance Method Summary collapse

Instance Method Details

#edit_mode_enabled?Boolean

Returns:

  • (Boolean)


7
8
9
# File 'app/controllers/transit_controller.rb', line 7

def edit_mode_enabled?
  true
end

#render(*args) ⇒ Object



11
12
13
14
# File 'app/controllers/transit_controller.rb', line 11

def render(*args)
  args.first[:layout] = false if request.xhr? and args.first[:layout].nil?
  super
end