use action_controller configuration options in initializers

this uses the configuration settings rather than calling ActionController::Base to get the configured values.
after the "action_controller.set_configs" initializer has run, the configuration option holds the value Base will get when it loads.
This commit is contained in:
Dave Gynn
2016-01-13 22:04:25 -08:00
committed by Benjamin Fleischer
parent 58a74d064e
commit ea8d463555
2 changed files with 8 additions and 9 deletions

View File

@@ -57,7 +57,7 @@ require 'fixtures/active_record'
require 'fixtures/poro'
ActiveSupport.on_load(:active_model_serializers) do
ActiveSupport.on_load(:action_controller) do
$action_controller_logger = ActiveModelSerializers.logger
ActiveModelSerializers.logger = Logger.new(IO::NULL)
end