Class: AuxiliaryRails::Application::Form Abstract

Inherits:
Object
  • Object
show all
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

#performable_status

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Concerns::Performable

#call, #ensure_empty_errors!, #ensure_empty_status!, #ensure_execution!, #error!, #error_class, #failure!, #failure?, #on, #perform, #status?, #success!, #success?, #transaction

Class Method Details

.i18n_scopeSymbol

Defines ‘scope` for ActiveModel::Translation

Returns:

  • (Symbol)


16
17
18
# File 'lib/auxiliary_rails/application/form.rb', line 16

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.

Returns:

  • (Boolean)


25
26
27
# File 'lib/auxiliary_rails/application/form.rb', line 25

def persisted?
  performable_status == true
end