Skip to content

Commit

Permalink
private callback methods should work
Browse files Browse the repository at this point in the history
  • Loading branch information
tenderlove committed May 14, 2013
1 parent e100d1e commit f93da57
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion activesupport/test/callbacks_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f93da57

Please sign in to comment.