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