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!, #failure!, #failure?, #on, #perform, #status?, #success!, #success?, #transaction

Methods included from Concerns::Errorable

#error!

Methods included from Concerns::Callable

#call, included

Class Method Details

.i18n_scopeSymbol

Defines ‘scope` for ActiveModel::Translation

Returns:

  • (Symbol)


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.

Returns:

  • (Boolean)


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

def persisted?
  performable_status == true
end