Module: Coco::Concerns::ActsAsFieldWithOptions

Instance Method Summary collapse

Methods included from HasName

#component_name

Instance Method Details

#combine_options!Object



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

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