Sha256: f10541512e3b43bd1bb8629036eba10c36043be815e1032c9010c4242ac1a124

Contents?: true

Size: 309 Bytes

Versions: 6

Compression:

Stored size: 309 Bytes

Contents

module ApiTaster
  class ApplicationController < ActionController::Base
    layout proc { |controller| controller.request.xhr? ? nil : 'api_taster/application' }

    before_filter :reload_routes

    private

    def reload_routes
      load Rails.application.root.join('config/routes.rb')
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
api_taster-0.7.0 app/controllers/api_taster/application_controller.rb
api_taster-0.6.0 app/controllers/api_taster/application_controller.rb
api_taster-0.5.1 app/controllers/api_taster/application_controller.rb
api_taster-0.5.0 app/controllers/api_taster/application_controller.rb
api_taster-0.4.8 app/controllers/api_taster/application_controller.rb
api_taster-0.4.7 app/controllers/api_taster/application_controller.rb