Sha256: 720e7e2f7d209275b155a58b5a8c3411095aaff78c320865393ab3ae1028a063

Contents?: true

Size: 385 Bytes

Versions: 48

Compression:

Stored size: 385 Bytes

Contents

module Coco
  module Concerns
    module ActsAsFieldWithOptions
      extend ActiveSupport::Concern
      include Concerns::HasName
      include AppHelper

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

Version data entries

48 entries across 48 versions & 1 rubygems

Version Path
coveragebook_components-0.5.7 app/components/coco/concerns/acts_as_field_with_options.rb
coveragebook_components-0.5.6 app/components/coco/concerns/acts_as_field_with_options.rb
coveragebook_components-0.5.5 app/components/coco/concerns/acts_as_field_with_options.rb
coveragebook_components-0.5.4 app/components/coco/concerns/acts_as_field_with_options.rb
coveragebook_components-0.5.3 app/components/coco/concerns/acts_as_field_with_options.rb
coveragebook_components-0.5.2 app/components/coco/concerns/acts_as_field_with_options.rb
coveragebook_components-0.5.1 app/components/coco/concerns/acts_as_field_with_options.rb
coveragebook_components-0.5.0 app/components/coco/concerns/acts_as_field_with_options.rb