File tree Expand file tree Collapse file tree 2 files changed +1
-6
lines changed Expand file tree Collapse file tree 2 files changed +1
-6
lines changed Original file line number Diff line number Diff line change @@ -6,11 +6,6 @@ module Rails
66 module ActionController
77 REVERSE_MAPPING_KEY = 'jsonapi_deserializable.reverse_mapping' . freeze
88
9- def self . prepended ( base )
10- base . class_eval do
11- extend ClassMethods
12- end
13- end
149 module ClassMethods
1510 def deserializable_resource ( key , options = { } , &block )
1611 _deserializable ( key , options ,
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ class Railtie < ::Rails::Railtie
1818 initializer 'jsonapi-rails.action_controller' do
1919 ActiveSupport . on_load ( :action_controller ) do
2020 require 'jsonapi/rails/action_controller'
21- prepend ::JSONAPI ::Rails ::ActionController
21+ extend ::JSONAPI ::Rails ::ActionController :: ClassMethods
2222
2323 Mime ::Type . register MEDIA_TYPE , :jsonapi
2424
You can’t perform that action at this time.
0 commit comments