aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/test
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2013-05-14 10:48:34 -0700
committerAaron Patterson <aaron.patterson@gmail.com>2013-05-14 10:48:34 -0700
commitf93da579ce7f77dbd58b9a2165861aee265b8c93 (patch)
tree38c11c052c7d0f12b0e28b81c780d66944a57b66 /activesupport/test
parente100d1e489a9d88e86510fcc8f1bdfe0fb54f6a7 (diff)
downloadrails-f93da579ce7f77dbd58b9a2165861aee265b8c93.tar.gz
rails-f93da579ce7f77dbd58b9a2165861aee265b8c93.tar.bz2
rails-f93da579ce7f77dbd58b9a2165861aee265b8c93.zip
private callback methods should work
Diffstat (limited to 'activesupport/test')
-rw-r--r--activesupport/test/callbacks_test.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/activesupport/test/callbacks_test.rb b/activesupport/test/callbacks_test.rb
index e23ce8ffb0..af2de7845f 100644
--- a/activesupport/test/callbacks_test.rb
+++ b/activesupport/test/callbacks_test.rb
@@ -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