Class: DynamicFieldsets::FieldOption

Inherits:
ActiveRecord::Base
  • Object
show all
Defined in:
app/models/dynamic_fieldsets/field_option.rb

Overview

Base class for various field_options, field options are used for fields with a set of answers to choose from the field types that need options are select, checkbox, or radio

Instance Method Summary collapse

Instance Method Details

#enabledArray

Returns Scope: enabled field options.

Returns:

  • (Array)

    Scope: enabled field options



17
# File 'app/models/dynamic_fieldsets/field_option.rb', line 17

scope :enabled, :conditions => { :enabled => true }