Skip to content

Commit

Permalink
Remove default callback for assignment to keep callback order in tact…
Browse files Browse the repository at this point in the history
… for possible compatibility issues
  • Loading branch information
jkeen committed Sep 22, 2024
1 parent cf060cd commit 26a3820
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/graphiti/resource/persistence.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ module Persistence
extend ActiveSupport::Concern

class_methods do
def before_attributes(method = nil, only: [:create, :update, :assign], &blk)
def before_attributes(method = nil, only: [:create, :update], &blk)
add_callback(:attributes, :before, method, only, &blk)
end

def after_attributes(method = nil, only: [:create, :update, :assign], &blk)
def after_attributes(method = nil, only: [:create, :update], &blk)
add_callback(:attributes, :after, method, only, &blk)
end

Expand Down

0 comments on commit 26a3820

Please sign in to comment.