module ActiveEntity::Identity::ClassMethods
Public Instance Methods
identity_attribute(*names)
click to toggle source
# File lib/active_entity/identity.rb, line 11 def identity_attribute(*names) identity_attributes.concat(names.flatten) define_method(:==) do |other| return false unless self.class === other names.all? {|name| public_send(name) == other.public_send(name) } end end