Module: DynamicFieldsets

Defined in:
app/controllers/dynamic_fieldsets/fieldset_associators_controller.rb,
app/models/dynamic_fieldsets.rb,
lib/dynamic_fieldsets/config.rb,
lib/dynamic_fieldsets/engine.rb,
lib/dynamic_fieldsets/railtie.rb,
app/models/dynamic_fieldsets/field.rb,
app/models/dynamic_fieldsets/fieldset.rb,
app/models/dynamic_fieldsets/date_field.rb,
app/models/dynamic_fieldsets/dependency.rb,
app/models/dynamic_fieldsets/text_field.rb,
app/models/dynamic_fieldsets/radio_field.rb,
app/models/dynamic_fieldsets/field_option.rb,
app/models/dynamic_fieldsets/field_record.rb,
app/models/dynamic_fieldsets/select_field.rb,
app/models/dynamic_fieldsets/field_default.rb,
app/helpers/dynamic_fieldsets/fields_helper.rb,
app/models/dynamic_fieldsets/checkbox_field.rb,
app/models/dynamic_fieldsets/datetime_field.rb,
app/models/dynamic_fieldsets/fieldset_child.rb,
app/models/dynamic_fieldsets/textarea_field.rb,
app/models/dynamic_fieldsets/dependency_group.rb,
app/models/dynamic_fieldsets/dependency_clause.rb,
app/models/dynamic_fieldsets/instruction_field.rb,
lib/dynamic_fieldsets/field_with_field_options.rb,
lib/dynamic_fieldsets/field_with_single_answer.rb,
app/models/dynamic_fieldsets/fieldset_associator.rb,
lib/dynamic_fieldsets/dynamic_fieldsets_in_model.rb,
lib/generators/dynamic_fieldsets/views_generator.rb,
app/helpers/dynamic_fieldsets/nested_model_helper.rb,
app/models/dynamic_fieldsets/field_html_attribute.rb,
lib/dynamic_fieldsets/field_with_multiple_answers.rb,
app/models/dynamic_fieldsets/multiple_select_field.rb,
lib/generators/dynamic_fieldsets/install_generator.rb,
app/controllers/dynamic_fieldsets/fields_controller.rb,
app/controllers/dynamic_fieldsets/fieldsets_controller.rb,
app/helpers/dynamic_fieldsets/fieldset_children_helper.rb,
lib/generators/dynamic_fieldsets/controllers_generator.rb,
app/controllers/dynamic_fieldsets/fieldset_children_controller.rb

Overview

Controller for the FieldsetAssociator model Allows users to view but not create or edit fieldset associators

Defined Under Namespace

Modules: DynamicFieldsetsInModel, FieldWithFieldOptions, FieldWithMultipleAnswers, FieldWithSingleAnswer, FieldsHelper, FieldsetChildrenHelper, Generators, NestedModelHelper Classes: CheckboxField, Configuration, DateField, DatetimeField, Dependency, DependencyClause, DependencyGroup, Engine, Field, FieldDefault, FieldHtmlAttribute, FieldOption, FieldRecord, FieldsController, Fieldset, FieldsetAssociator, FieldsetAssociatorsController, FieldsetChild, FieldsetChildrenController, FieldsetsController, InstructionField, MultipleSelectField, RadioField, Railtie, SelectField, TextField, TextareaField

Class Method Summary collapse

Class Method Details

.configObject



11
12
13
# File 'lib/dynamic_fieldsets/config.rb', line 11

def self.config
  @config
end

.configure {|@config ||= DynamicFieldsets::Configuration.new| ... } ⇒ Object

create new configs by passing a block with the config assignment



7
8
9
# File 'lib/dynamic_fieldsets/config.rb', line 7

def self.configure(&block)
  yield @config ||= DynamicFieldsets::Configuration.new
end