Module: Datamappify::Entity::ActiveModel::Compatibility

Defined in:
lib/datamappify/entity/active_model/compatibility.rb

Overview

Add non-entity related stuff so that an entity can be used in say, forms

Instance Method Summary collapse

Instance Method Details

#persisted?Boolean

Returns:

  • (Boolean)


7
8
9
# File 'lib/datamappify/entity/active_model/compatibility.rb', line 7

def persisted?
  !id.blank?
end