Class: Form::Structure
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- Form::Structure
- Includes:
- Admin::Form::Structure, Splitter
- Defined in:
- app/models/form/structure.rb
Defined Under Namespace
Modules: Splitter
Instance Method Summary collapse
Instance Method Details
#email_column_key ⇒ Object
28 29 30 |
# File 'app/models/form/structure.rb', line 28 def email_column_key @email_column_key ||= fields.where(type: 'email').first.try(:column_key) end |
#header ⇒ Object
32 33 34 |
# File 'app/models/form/structure.rb', line 32 def header rows.first end |
#name ⇒ Object
24 25 26 |
# File 'app/models/form/structure.rb', line 24 def name @_name ||= "#{form_name}_#{id}".to_sym end |