Class: AuxiliaryRails::Application::Form Abstract
- Inherits:
-
Object
- Object
- AuxiliaryRails::Application::Form
- Includes:
- ActiveModel::AttributeAssignment, ActiveModel::Attributes, ActiveModel::Model, Concerns::Performable
- Defined in:
- lib/auxiliary_rails/application/form.rb
Overview
This class is abstract.
Instance Attribute Summary
Attributes included from Concerns::Performable
Class Method Summary collapse
-
.i18n_scope ⇒ Symbol
Defines ‘scope` for
ActiveModel::Translation
.
Instance Method Summary collapse
-
#persisted? ⇒ Boolean
Indicates object persistence.
Methods included from Concerns::Performable
#call, #ensure_empty_errors!, #ensure_empty_status!, #ensure_execution!, #failure!, #failure?, #on, #perform, #status?, #success!, #success?, #transaction
Methods included from Concerns::Errorable
Methods included from Concerns::Callable
Class Method Details
.i18n_scope ⇒ Symbol
Defines ‘scope` for ActiveModel::Translation
17 18 19 |
# File 'lib/auxiliary_rails/application/form.rb', line 17 def i18n_scope :forms end |
Instance Method Details
#persisted? ⇒ Boolean
Indicates object persistence.
In case of form as performable object that means that form was executed with success.
26 27 28 |
# File 'lib/auxiliary_rails/application/form.rb', line 26 def persisted? performable_status == true end |