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.12.2 app/components/coco/concerns/acts_as_field_with_options.rb
coveragebook_components-0.12.1 app/components/coco/concerns/acts_as_field_with_options.rb
coveragebook_components-0.12.0 app/components/coco/concerns/acts_as_field_with_options.rb
coveragebook_components-0.11.0 app/components/coco/concerns/acts_as_field_with_options.rb
coveragebook_components-0.10.1.beta.2 app/components/coco/concerns/acts_as_field_with_options.rb
coveragebook_components-0.10.1.beta.1 app/components/coco/concerns/acts_as_field_with_options.rb
coveragebook_components-0.10.1.beta.0 app/components/coco/concerns/acts_as_field_with_options.rb
coveragebook_components-0.10.0 app/components/coco/concerns/acts_as_field_with_options.rb
coveragebook_components-0.9.1 app/components/coco/concerns/acts_as_field_with_options.rb
coveragebook_components-0.9.0 app/components/coco/concerns/acts_as_field_with_options.rb
coveragebook_components-0.8.9 app/components/coco/concerns/acts_as_field_with_options.rb
coveragebook_components-0.8.8 app/components/coco/concerns/acts_as_field_with_options.rb
coveragebook_components-0.8.7 app/components/coco/concerns/acts_as_field_with_options.rb
coveragebook_components-0.8.6 app/components/coco/concerns/acts_as_field_with_options.rb
coveragebook_components-0.8.5 app/components/coco/concerns/acts_as_field_with_options.rb
coveragebook_components-0.8.4 app/components/coco/concerns/acts_as_field_with_options.rb
coveragebook_components-0.8.3 app/components/coco/concerns/acts_as_field_with_options.rb
coveragebook_components-0.8.2 app/components/coco/concerns/acts_as_field_with_options.rb
coveragebook_components-0.8.1 app/components/coco/concerns/acts_as_field_with_options.rb
coveragebook_components-0.8.0 app/components/coco/concerns/acts_as_field_with_options.rb