Module: Formalism::ModelForms::Base
- Extended by:
- Forwardable, ModuleMethods::Extension
- Includes:
- Form::Fields
- Included in:
- Plural, Delete, Find, List, Move, Select, Update
- Defined in:
- lib/formalism/model_forms/_base.rb
Overview
Defined Under Namespace
Modules: ClassMethods, Plural
Instance Attribute Summary collapse
Instance Method Summary
collapse
Instance Attribute Details
#instance ⇒ Object
103
104
105
106
107
|
# File 'lib/formalism/model_forms/_base.rb', line 103
def instance
return @instance if defined?(@instance)
@instance = find_instance
end
|
Instance Method Details
#before_retry ⇒ Object
95
96
97
98
99
100
101
|
# File 'lib/formalism/model_forms/_base.rb', line 95
def before_retry
if instance_variable_defined?(instance_variable_name)
remove_instance_variable instance_variable_name
end
super
end
|
#initialize ⇒ Object
87
88
89
90
91
92
93
|
# File 'lib/formalism/model_forms/_base.rb', line 87
def initialize(*)
@cached =
Sequel::Plugins.const_defined?(:StaticCache) &&
model.plugins.include?(Sequel::Plugins::StaticCache)
super
end
|