Sha256: cb8281f948cc6409318391fb097e9a2f49a73ea4a0dd8761793562ad1155931e

Contents?: true

Size: 441 Bytes

Versions: 2

Compression:

Stored size: 441 Bytes

Contents

module FormtasticRebootstrap
  module Inputs
    module Base
      module Choices
        include Formtastic::Inputs::Base::Choices

        def choice_wrapping_html_options(choice)
          super(choice).tap do |options|
            options[:for]   = choice_input_dom_id(choice)
          end
        end

        def choice_label_html_options(choice)
          choice_wrapping_html_options(choice)
        end

      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
formtastic_rebootstrap-0.0.2 lib/formtastic_rebootstrap/inputs/base/choices.rb
formtastic_rebootstrap-0.0.1 lib/formtastic_rebootstrap/inputs/base/choices.rb