Skip to content

Commit

Permalink
make both cached and record_updated accessors in one line
Browse files Browse the repository at this point in the history
  • Loading branch information
gnufied committed May 9, 2012
1 parent 1024c68 commit 041b6c6
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions activerecord/test/cases/transaction_callbacks_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -298,8 +298,7 @@ class TopicWithSaveInCallback < ActiveRecord::Base
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
Expand Down

0 comments on commit 041b6c6

Please sign in to comment.