Module: ActiveData::Model::Primary::PrependMethods

Defined in:
lib/active_data/model/primary.rb

Instance Method Summary collapse

Instance Method Details

#==(other) ⇒ Object



40
41
42
43
44
45
46
47
# File 'lib/active_data/model/primary.rb', line 40

def == other
  other.instance_of?(self.class) &&
    has_primary_attribute? ?
      primary_attribute ?
        primary_attribute == other.primary_attribute :
        object_id == other.object_id :
      super(other)
end