Sha256: f596396975ec7edd54e14e5db9e658505f783733305707a1041ce7a9daaee192

Contents?: true

Size: 320 Bytes

Versions: 1

Compression:

Stored size: 320 Bytes

Contents

class TransitController < InheritedResources::Base  
  
  helper_method :edit_mode_enabled?
  respond_to :html, :js  
  before_filter :authenticate_admin!
  
  def edit_mode_enabled?
    true
  end
  
  def render(*args)
    args.first[:layout] = false if request.xhr? and args.first[:layout].nil?
    super
  end
  
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
transit-0.0.2 app/controllers/transit_controller.rb