Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
p committed Jan 27, 2019
1 parent 12043db commit 1e512db
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/mongoid/interceptable.rb
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,11 @@ def run_callbacks(kind, *args, &block)
return false
end
end
callback_executable?(kind) ? super(kind, *args, &block) : true
if callback_executable?(kind)
super(kind, *args, &block)
else
true
end
end

private
Expand Down

0 comments on commit 1e512db

Please sign in to comment.