Sha256: 708648af50bdaecb2fa0584a9d3526d398a0e9e0d278beb1ab44b87960a8b93f

Contents?: true

Size: 394 Bytes

Versions: 5

Compression:

Stored size: 394 Bytes

Contents

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

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
coveragebook_components-0.16.0 app/components/coco/concerns/acts_as_field_with_options.rb
coveragebook_components-0.15.0 app/components/coco/concerns/acts_as_field_with_options.rb
coveragebook_components-0.14.0 app/components/coco/concerns/acts_as_field_with_options.rb
coveragebook_components-0.13.1 app/components/coco/concerns/acts_as_field_with_options.rb
coveragebook_components-0.13.0 app/components/coco/concerns/acts_as_field_with_options.rb