We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 896563c commit bf3a943Copy full SHA for bf3a943
lib/jsonapi-resources.rb
@@ -7,7 +7,7 @@
7
require 'jsonapi/cached_response_fragment'
8
require 'jsonapi/response_document'
9
require 'jsonapi/acts_as_resource_controller'
10
-if ActiveSupport.respond_to?(:on_load)
+if Rails::VERSION::MAJOR >= 6
11
ActiveSupport.on_load(:action_controller_base) do
12
require 'jsonapi/resource_controller'
13
end
0 commit comments