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:
parent
1024c688a9
commit
041b6c6ccb
1 changed files with 1 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue