mirror of
https://github.com/ditkrg/active_model_serializers.git
synced 2026-01-25 07:16:49 +00:00
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:
committed by
Benjamin Fleischer
parent
58a74d064e
commit
ea8d463555
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user