module ActiveEntity::Identity
Public Instance Methods
to_key()
click to toggle source
For ActiveModel::Conversion
# File lib/active_entity/identity.rb, line 22 def to_key if respond_to?(:persisted?) && persisted? identity_attributes.empty? ? nil : identity_attributes.map {|name| public_send(name) } else nil end end