Module: ActiveInteraction::ActiveModelable

Extended by:
ActiveModel::Naming, ActiveSupport::Concern
Includes:
ActiveModel::Conversion, ActiveModel::Validations
Included in:
Base
Defined in:
lib/active_interaction/concerns/active_modelable.rb

Overview

Implement the minimal ActiveModel interface.

Defined Under Namespace

Modules: ClassMethods

Instance Method Summary collapse

Instance Method Details

#i18n_scopeSymbol

Returns:

  • (Symbol)

See Also:

  • ActiveModel::Translation#i18n_scope


18
19
20
# File 'lib/active_interaction/concerns/active_modelable.rb', line 18

def i18n_scope
  self.class.i18n_scope
end

#new_record?Boolean

Returns:

  • (Boolean)

See Also:

  • ActiveRecord::Presistence#new_record?


25
26
27
# File 'lib/active_interaction/concerns/active_modelable.rb', line 25

def new_record?
  true
end

#persisted?Boolean

Returns:

  • (Boolean)

See Also:

  • ActiveRecord::Presistence#persisted?


32
33
34
# File 'lib/active_interaction/concerns/active_modelable.rb', line 32

def persisted?
  false
end