Class: DatashiftJourney::Collector::FormDefinition

Inherits:
ActiveRecord::Base
  • Object
show all
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_idsObject



22
23
24
# File 'app/models/datashift_journey/collector/form_definition.rb', line 22

def field_ids
  form_fields.collect(&:id)
end