Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fixing activemodel tests

  • Loading branch information...
commit 5bc4740dec7ec9846915f7af459056d486b9c89d 1 parent 3551690
@tenderlove tenderlove authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  activesupport/lib/active_support/callbacks.rb
View
3  activesupport/lib/active_support/callbacks.rb
@@ -351,7 +351,8 @@ def initialize(name, config)
def compile
callbacks = lambda { |env|
- env.value = env.run_block.call if env.run_block && !env.halted
+ block = env.run_block
+ env.value = !env.halted && (!block || block.call)
env
}
reverse_each do |callback|
Please sign in to comment.
Something went wrong with that request. Please try again.