File tree Expand file tree Collapse file tree
lib/jsonapi/authorization Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -16,11 +16,6 @@ class AuthorizingProcessor < JSONAPI::Processor
1616 set_callback :create_to_many_relationships , :before , :authorize_create_to_many_relationships
1717 set_callback :replace_to_many_relationships , :before , :authorize_replace_to_many_relationships
1818 set_callback :remove_to_many_relationships , :before , :authorize_remove_to_many_relationships
19- set_callback (
20- :replace_polymorphic_to_one_relationship ,
21- :before ,
22- :authorize_replace_polymorphic_to_one_relationship
23- )
2419
2520 [
2621 :find ,
@@ -226,10 +221,6 @@ def authorize_remove_to_one_relationship
226221 authorizer . remove_to_one_relationship ( source_record , relationship_type )
227222 end
228223
229- def authorize_replace_polymorphic_to_one_relationship
230- raise NotImplementedError
231- end
232-
233224 private
234225
235226 def authorizer
You can’t perform that action at this time.
0 commit comments