Sha256: a0afafb0e1f9c66f65018967d87e22e84945a51940d8c9d628e078344366c6dd

Contents?: true

Size: 591 Bytes

Versions: 9

Compression:

Stored size: 591 Bytes

Contents

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

module RailsBootstrapForm
  module Inputs
    module TimeZoneSelect
      extend ActiveSupport::Concern

      included do
        def time_zone_select(attribute, priority_zones = nil, options = {}, html_options = {})
          options = {bootstrap_form: {field_class: "form-select"}}.deep_merge!(options)

          field_wrapper_builder(attribute, options, html_options) do
            super(attribute, priority_zones, options, html_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/time_zone_select.rb
rails_bootstrap_form-0.8.2 lib/rails_bootstrap_form/inputs/time_zone_select.rb
rails_bootstrap_form-0.8.1 lib/rails_bootstrap_form/inputs/time_zone_select.rb
rails_bootstrap_form-0.8.0 lib/rails_bootstrap_form/inputs/time_zone_select.rb
rails_bootstrap_form-0.7.2 lib/rails_bootstrap_form/inputs/time_zone_select.rb
rails_bootstrap_form-0.7.1 lib/rails_bootstrap_form/inputs/time_zone_select.rb
rails_bootstrap_form-0.7.0 lib/rails_bootstrap_form/inputs/time_zone_select.rb
rails_bootstrap_form-0.6.2 lib/rails_bootstrap_form/inputs/time_zone_select.rb
rails_bootstrap_form-0.6.1 lib/rails_bootstrap_form/inputs/time_zone_select.rb