Method: ActiveModel::Datastore#parent?

Defined in:
lib/active_model/datastore.rb

#parent?Boolean

Used to determine if the ActiveModel object belongs to an entity group.

Returns:

  • (Boolean)
[View source]

135
136
137
# File 'lib/active_model/datastore.rb', line 135

def parent?
  parent_key_id.present?
end