Module: InlineForms::FormElementRegistry

Defined in:
lib/inline_forms/form_element_registry.rb

Constant Summary collapse

ENTRIES =
{
  :audio_field => :string,
  :check_box => :boolean,
  :check_list => :no_migration,
  :ckeditor => :text,
  :date_select => :date,
  :decimal_field => :string,
  :devise_password_field => :string,
  :dropdown => :belongs_to,
  :dropdown_with_integers => :integer,
  :dropdown_with_other => :belongs_to,
  :dropdown_with_values => :integer,
  :dropdown_with_values_with_stars => :integer,
  :file_field => :string,
  :header => :string,
  :image_field => :string,
  :info => :string,
  :integer_field => :integer,
  :money_field => :integer,
  :month_select => :integer,
  :month_year_picker => :date,
  :multi_image_field => :string,
  :plain_text => :text,
  :plain_text_area => :text,
  :question_list => :no_migration,
  :radio_button => :integer,
  :rich_text => :no_migration,
  :scale_with_integers => :integer,
  :scale_with_values => :integer,
  :simple_file_field => :string,
  :slider_with_values => :integer,
  :text_area => :text,
  :text_area_without_ckeditor => :text,
  :text_field => :string,
  :time_select => :time,
}.freeze

Class Method Summary collapse

Class Method Details

.apply!Object



42
43
44
# File 'lib/inline_forms/form_element_registry.rb', line 42

def self.apply!
  SPECIAL_COLUMN_TYPES.merge!(ENTRIES)
end