Module: ActiveEntity::Identity
- Extended by:
- ActiveSupport::Concern
- Defined in:
- lib/active_entity/identity.rb
Instance Method Summary collapse
-
#to_key ⇒ Object
For ActiveModel::Conversion.
Instance Method Details
#to_key ⇒ Object
For ActiveModel::Conversion
22 23 24 |
# File 'lib/active_entity/identity.rb', line 22 def to_key identity_attributes.empty? ? nil : identity_attributes.map {|name| public_send(name) } end |