Skip to content

Commit 6377da9

Browse files
committed
remove polymorphic callback
1 parent 34c4832 commit 6377da9

1 file changed

Lines changed: 0 additions & 9 deletions

File tree

lib/jsonapi/authorization/authorizing_processor.rb

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)