Skip to content

Commit 8997e49

Browse files
committed
Remove default callback for assignment to keep callback order in tact for possible compatibility issues
1 parent 05b0ec3 commit 8997e49

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/graphiti/resource/persistence.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@ module Persistence
44
extend ActiveSupport::Concern
55

66
class_methods do
7-
def before_attributes(method = nil, only: [:create, :update, :assign], &blk)
7+
def before_attributes(method = nil, only: [:create, :update], &blk)
88
add_callback(:attributes, :before, method, only, &blk)
99
end
1010

11-
def after_attributes(method = nil, only: [:create, :update, :assign], &blk)
11+
def after_attributes(method = nil, only: [:create, :update], &blk)
1212
add_callback(:attributes, :after, method, only, &blk)
1313
end
1414

0 commit comments

Comments
 (0)