Class: ActiveModelSerializers::Railtie
- Inherits:
-
Rails::Railtie
- Object
- Rails::Railtie
- ActiveModelSerializers::Railtie
- Defined in:
- lib/active_model_serializers/railtie.rb
Instance Method Summary collapse
Instance Method Details
#extend_action_controller_test_case(&block) ⇒ Object
:nocov:
47 48 49 50 51 52 53 |
# File 'lib/active_model_serializers/railtie.rb', line 47 def extend_action_controller_test_case(&block) if Rails::VERSION::MAJOR >= 6 || Rails::VERSION::MAJOR == 5 && Rails::VERSION::MINOR >= 2 ActiveSupport.on_load(:action_controller_test_case, run_once: true, &block) else ActionController::TestCase.instance_eval(&block) end end |