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_scope ⇒ Symbol
18 19 20 |
# File 'lib/active_interaction/concerns/active_modelable.rb', line 18 def i18n_scope self.class.i18n_scope end |
#new_record? ⇒ Boolean
25 26 27 |
# File 'lib/active_interaction/concerns/active_modelable.rb', line 25 def new_record? true end |
#persisted? ⇒ Boolean
32 33 34 |
# File 'lib/active_interaction/concerns/active_modelable.rb', line 32 def persisted? false end |