Class: SimpleRecord::Base
- Inherits:
-
Object
- Object
- SimpleRecord::Base
- Extended by:
- OrmAdapter::ToAdapter
- Defined in:
- lib/orm_adapter-simple_record/simple_record.rb
Defined Under Namespace
Classes: OrmAdapter
Instance Method Summary collapse
Instance Method Details
#==(other) ⇒ Object
17 18 19 20 |
# File 'lib/orm_adapter-simple_record/simple_record.rb', line 17 def ==(other) return false if other.nil? attributes == other.attributes end |
#to_key ⇒ Object
22 23 24 25 |
# File 'lib/orm_adapter-simple_record/simple_record.rb', line 22 def to_key key = self.id [key] if key end |