Module: Granite::Form::Model::Primary::PrependMethods
- Defined in:
- lib/granite/form/model/primary.rb
Instance Method Summary collapse
Instance Method Details
#==(other) ⇒ Object
44 45 46 47 48 49 50 51 52 53 54 |
# File 'lib/granite/form/model/primary.rb', line 44 def ==(other) if other.instance_of?(self.class) && has_primary_attribute? if primary_attribute primary_attribute == other.primary_attribute else object_id == other.object_id end else super(other) end end |