Class: Viewable::Form
Defined Under Namespace
Modules: Splitter
Class Method Summary
collapse
Instance Method Summary
collapse
#other_uuid, #uuid, #uuid_with
Methods included from Viewable
#list, #other_locales, #unique_key_hash
Class Method Details
.not_static?(name) ⇒ Boolean
20
21
22
|
# File 'app/models/viewable/form.rb', line 20
def not_static?(name)
!static?(name)
end
|
Instance Method Details
#fetch_row(form) ⇒ Object
37
38
39
40
41
42
43
44
|
# File 'app/models/viewable/form.rb', line 37
def fetch_row(form)
if structure.nil?
create_structure!(viewable: self, email: ::Form::Email.new)
end
attributes = form.attributes
attributes['structure_id'] = structure_id
rows.build(attributes)
end
|
25
26
27
|
# File 'app/models/viewable/form.rb', line 25
def form_name
@_form_name ||= view_path.split('/')[-2]
end
|
#not_static? ⇒ Boolean
33
34
35
|
# File 'app/models/viewable/form.rb', line 33
def not_static?
!static?
end
|