Skip to content

Commit

Permalink
typo in original change on getting class name
Browse files Browse the repository at this point in the history
  • Loading branch information
pulley authored and Brian Durand committed Apr 11, 2011
1 parent c0351bd commit ccb66d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/acts_as_revisionable/revision_record.rb
Expand Up @@ -195,7 +195,7 @@ def restore_association (record, association, association_attributes)
associated_record.class.primary_key.each do |key|
associated_record.send("#{key.to_s}=", association_attributes[key.to_s])
end
exists = associated_record.class.find(associated_record.send(c.class.primary_key)) rescue nil
exists = associated_record.class.find(associated_record.send(associated_record.class.primary_key)) rescue nil
end
elsif reflection.macro == :has_one
associated_record = reflection.klass.new
Expand Down

0 comments on commit ccb66d4

Please sign in to comment.