diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2013-05-08 11:31:25 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2013-05-08 11:37:26 -0700 |
commit | 1ff1236b079d379bbf0ceaf19d7efc3ee97d0406 (patch) | |
tree | 5fcbdaedb956a5dc3b669e61905fa8d3907014f2 | |
parent | d77c64590a075284343aa6cf200f2a9c2e160a86 (diff) | |
download | rails-1ff1236b079d379bbf0ceaf19d7efc3ee97d0406.tar.gz rails-1ff1236b079d379bbf0ceaf19d7efc3ee97d0406.tar.bz2 rails-1ff1236b079d379bbf0ceaf19d7efc3ee97d0406.zip |
we need to indicate the type of callback
-rw-r--r-- | activesupport/test/callbacks_test.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/activesupport/test/callbacks_test.rb b/activesupport/test/callbacks_test.rb index 8df1c5bb7a..0a79cb037c 100644 --- a/activesupport/test/callbacks_test.rb +++ b/activesupport/test/callbacks_test.rb @@ -807,9 +807,9 @@ module CallbacksTest Class.new { include ActiveSupport::Callbacks define_callbacks :foo - n.times { set_callback :foo, callback } + n.times { set_callback :foo, :before, callback } def run; run_callbacks :foo; end - def self.skip(thing); skip_callback :foo, thing; end + def self.skip(thing); skip_callback :foo, :before, thing; end } end |