Module: Granite::Form::Model::Conventions

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

Defined Under Namespace

Modules: ClassMethods

Instance Method Summary collapse

Instance Method Details

#new_record?Boolean Also known as: new_object?

Returns:



18
19
20
# File 'lib/granite/form/model/conventions.rb', line 18

def new_record?
  !persisted?
end

#persisted?Boolean

Returns:



14
15
16
# File 'lib/granite/form/model/conventions.rb', line 14

def persisted?
  false
end