diff options
author | Hemant Kumar <gethemant@gmail.com> | 2012-05-09 18:43:18 +0530 |
---|---|---|
committer | Hemant Kumar <gethemant@gmail.com> | 2012-05-09 18:43:18 +0530 |
commit | 041b6c6ccb2130ee8c87db2dd53736c22a79f3e8 (patch) | |
tree | 5fe47e0563b3efd4148a4296135673c662237638 /activerecord | |
parent | 1024c688a9190461549d4943661e9862cb1a17d4 (diff) | |
download | rails-041b6c6ccb2130ee8c87db2dd53736c22a79f3e8.tar.gz rails-041b6c6ccb2130ee8c87db2dd53736c22a79f3e8.tar.bz2 rails-041b6c6ccb2130ee8c87db2dd53736c22a79f3e8.zip |
make both cached and record_updated accessors in one line
Diffstat (limited to 'activerecord')
-rw-r--r-- | activerecord/test/cases/transaction_callbacks_test.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/activerecord/test/cases/transaction_callbacks_test.rb b/activerecord/test/cases/transaction_callbacks_test.rb index 6e6a9afeff..9846f5b12d 100644 --- a/activerecord/test/cases/transaction_callbacks_test.rb +++ b/activerecord/test/cases/transaction_callbacks_test.rb @@ -298,8 +298,7 @@ class SaveFromAfterCommitBlockTest < ActiveRecord::TestCase self.table_name = :topics after_commit :cache_topic, :on => :create after_commit :call_update, :on => :update - attr_accessor :cached - attr_accessor :record_updated + attr_accessor :cached, :record_updated def call_update self.record_updated = true |