Permalink
Browse files

private callback methods should work

  • Loading branch information...
1 parent e100d1e commit f93da579ce7f77dbd58b9a2165861aee265b8c93 @tenderlove tenderlove committed May 14, 2013
Showing with 2 additions and 1 deletion.
  1. +2 −1 activesupport/test/callbacks_test.rb
@@ -864,8 +864,9 @@ def test_class_conditional_with_scope
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

0 comments on commit f93da57

Please sign in to comment.