Method: TopModel::Base#==

Defined in:
lib/topmodel/base.rb

#==(other) ⇒ Object



183
184
185
# File 'lib/topmodel/base.rb', line 183

def ==(other)
  other.equal?(self) || (other.instance_of?(self.class) && other.id == id)
end