aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test
diff options
context:
space:
mode:
authorHemant Kumar <gethemant@gmail.com>2012-05-09 18:43:18 +0530
committerHemant Kumar <gethemant@gmail.com>2012-05-09 18:43:18 +0530
commit041b6c6ccb2130ee8c87db2dd53736c22a79f3e8 (patch)
tree5fe47e0563b3efd4148a4296135673c662237638 /activerecord/test
parent1024c688a9190461549d4943661e9862cb1a17d4 (diff)
downloadrails-041b6c6ccb2130ee8c87db2dd53736c22a79f3e8.tar.gz
rails-041b6c6ccb2130ee8c87db2dd53736c22a79f3e8.tar.bz2
rails-041b6c6ccb2130ee8c87db2dd53736c22a79f3e8.zip
make both cached and record_updated accessors in one line
Diffstat (limited to 'activerecord/test')
-rw-r--r--activerecord/test/cases/transaction_callbacks_test.rb3
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