Sha256: 09b49b9ae8e332a86ae19bca3eca813550f39dff5fa3b814ff446b62cee92d2d

Contents?: true

Size: 496 Bytes

Versions: 9

Compression:

Stored size: 496 Bytes

Contents

# -*- encoding: utf-8 -*-
# -*- frozen_string_literal: true -*-
# -*- warn_indent: true -*-

module RailsBootstrapForm
  module Inputs
    module RangeField
      extend ActiveSupport::Concern

      included do
        def range_field(attribute, options = {})
          options = {bootstrap_form: {field_class: "form-range"}}.deep_merge!(options)

          field_wrapper_builder(attribute, options) do
            super(attribute, options)
          end
        end
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
rails_bootstrap_form-0.8.3 lib/rails_bootstrap_form/inputs/range_field.rb
rails_bootstrap_form-0.8.2 lib/rails_bootstrap_form/inputs/range_field.rb
rails_bootstrap_form-0.8.1 lib/rails_bootstrap_form/inputs/range_field.rb
rails_bootstrap_form-0.8.0 lib/rails_bootstrap_form/inputs/range_field.rb
rails_bootstrap_form-0.7.2 lib/rails_bootstrap_form/inputs/range_field.rb
rails_bootstrap_form-0.7.1 lib/rails_bootstrap_form/inputs/range_field.rb
rails_bootstrap_form-0.7.0 lib/rails_bootstrap_form/inputs/range_field.rb
rails_bootstrap_form-0.6.2 lib/rails_bootstrap_form/inputs/range_field.rb
rails_bootstrap_form-0.6.1 lib/rails_bootstrap_form/inputs/range_field.rb