# -*- 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: {field_class: "form-range"}}.deep_merge!(options) bootstrap_options = bootstrap_form_options.scoped(options.delete(:bootstrap)) return super if bootstrap_options.disabled? field_wrapper_builder(attribute, bootstrap_options, options) do super(attribute, options) end end end end end end