module Coco module Concerns module ActsAsFieldWithHtmlOptions extend ActiveSupport::Concern include Concerns::HasName def set_html_options! @html_options[:data] ||= {} @html_options[:data][:coco] = "✔" @html_options[:data][:component] = "form-#{component_name.delete_prefix("fields-")}" super end end end end