Class: DatashiftJourney::Collector::FormDefinition
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- DatashiftJourney::Collector::FormDefinition
- Defined in:
- app/models/datashift_journey/collector/form_definition.rb
Overview
Associated with a REFORM class - stores related Form definition data in the DB, such as the fields associated with this form.
Each step or state in the plan will have an associated ReForm + FormDefinition
Similar in intention to the Page Object Pattern, store and provide helpers for rendering forms and HTML in the associated state View
Instance Method Summary collapse
Instance Method Details
#field_ids ⇒ Object
22 23 24 |
# File 'app/models/datashift_journey/collector/form_definition.rb', line 22 def field_ids form_fields.collect(&:id) end |