Skip to content

Commit de26a00

Browse files
committed
use InsertAction instead of ReplaceAction
1 parent 3db38d9 commit de26a00

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/rails/enqueue_job_in_after_commit_callback.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ def send_notification
4141

4242
find_node node_type: 'call_node', receiver: nil, name: { in: %i[after_create after_update after_save] } do
4343
callback_names_with_actions[node.arguments.arguments.first.to_value.to_s] =
44-
NodeMutation::ReplaceAction.new(node, :name, with: '{{name}}_commit', adapter: mutation_adapter)
44+
NodeMutation::InsertAction.new(node, '_commit', to: :name, adapter: mutation_adapter)
4545
end
4646

4747
find_node node_type: 'def_node' do

0 commit comments

Comments
 (0)