Skip to content

Commit

Permalink
Use self.target= rather than @target= as the former automatically set…
Browse files Browse the repository at this point in the history
…s loaded
  • Loading branch information
jonleighton authored and tenderlove committed Jan 16, 2011
1 parent ef79b91 commit 115eedb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -10,11 +10,9 @@ def replace(record)
replace_keys(record) replace_keys(record)
set_inverse_instance(record) set_inverse_instance(record)


@target = record
@updated = true if record @updated = true if record


loaded self.target = record
record
end end


def updated? def updated?
Expand Down
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -24,8 +24,7 @@ def replace(record, save = true)
end end
end end


@target = record self.target = record
loaded
end end


private private
Expand Down

0 comments on commit 115eedb

Please sign in to comment.