Skip to content

Commit

Permalink
@loaded is defined in initialize, so we should not need this
Browse files Browse the repository at this point in the history
  • Loading branch information
tenderlove committed Jan 12, 2011
1 parent 8bee98f commit 49696e0
Showing 1 changed file with 0 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -270,8 +270,6 @@ def set_owner_attributes(record)
# ActiveRecord::RecordNotFound is rescued within the method, and it is
# not reraised. The proxy is \reset and +nil+ is the return value.
def load_target
return nil unless defined?(@loaded)

if !loaded? && (!@owner.new_record? || foreign_key_present?) && target_klass
@target = find_target
end
Expand Down

0 comments on commit 49696e0

Please sign in to comment.