Merge branch 'master' into normalizecb

* master:
  private callback methods should work
  Update mail to minimum version 2.5.4
This commit is contained in:
Aaron Patterson 2013-05-14 10:48:43 -07:00
commit 9dcecbb080
2 changed files with 3 additions and 2 deletions

View File

@ -21,5 +21,5 @@ Gem::Specification.new do |s|
s.add_dependency 'actionpack', version
s.add_dependency 'mail', '~> 2.5.3'
s.add_dependency 'mail', '~> 2.5.4'
end

View File

@ -864,8 +864,9 @@ module CallbacksTest
include ActiveSupport::Callbacks
define_callbacks :foo, :scope => [:name]
set_callback :foo, :before, :foo, :if => callback
def foo; end
def run; run_callbacks :foo; end
private
def foo; end
}
object = klass.new
object.run