Module: ActiveData::Model::Conventions

Extended by:
ActiveSupport::Concern
Defined in:
lib/active_data/model/conventions.rb

Defined Under Namespace

Modules: ClassMethods

Instance Method Summary collapse

Instance Method Details

#new_record?Boolean Also known as: new_object?

Returns:



17
18
19
# File 'lib/active_data/model/conventions.rb', line 17

def new_record?
  !persisted?
end

#persisted?Boolean

Returns:



13
14
15
# File 'lib/active_data/model/conventions.rb', line 13

def persisted?
  false
end