Class: Combustion::Configurations::ActionController

Inherits:
Object
  • Object
show all
Defined in:
lib/combustion/configurations/action_controller.rb

Class Method Summary collapse

Class Method Details

.call(config) ⇒ Object


4
5
6
7
8
9
10
# File 'lib/combustion/configurations/action_controller.rb', line 4

def self.call(config)
  return unless defined?(ActionController::Railtie)

  config.action_dispatch.show_exceptions            = false
  config.action_controller.perform_caching          = false
  config.action_controller.allow_forgery_protection = false
end