Module: Coco::Concerns::ActsAsFieldWithOptions

Instance Method Summary collapse

Methods included from AppComponentsHelper

#coco_app_header, #coco_app_layout, #coco_contact_callout, #coco_faqs, #coco_plan_card, #coco_plan_confirmation, #coco_plan_picker, #coco_sidebar_nav, #coco_sidebar_nav_menu

Methods included from HasName

#component_name

Instance Method Details

#combine_options!Object



8
9
10
11
12
13
# File 'app/components/coco/concerns/acts_as_field_with_options.rb', line 8

def combine_options!
  @options[:data] ||= {}
  @options[:data][:coco] = ""
  @options[:data][:component] = "form-#{component_name.delete_prefix("fields-")}"
  super
end