1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

make both cached and record_updated accessors in one line

This commit is contained in:
Hemant Kumar 2012-05-09 18:43:18 +05:30
parent 1024c688a9
commit 041b6c6ccb

View file

@ -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