Sha256: 8e0a37ca51d00506403c60f14148533049a40951cf50d24651db714f792b7113

Contents?: true

Size: 566 Bytes

Versions: 6

Compression:

Stored size: 566 Bytes

Contents

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

module RailsBootstrapForm
  module Inputs
    module WeekdaySelect
      extend ActiveSupport::Concern

      included do
        def weekday_select(attribute, options = {}, html_options = {}, &block)
          options = {bootstrap_form: {field_class: "form-select"}}.deep_merge!(options)

          field_wrapper_builder(attribute, options, html_options) do
            super(attribute, options, html_options, &block)
          end
        end
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
rails_bootstrap_form-0.8.3 lib/rails_bootstrap_form/inputs/weekday_select.rb
rails_bootstrap_form-0.8.2 lib/rails_bootstrap_form/inputs/weekday_select.rb
rails_bootstrap_form-0.8.1 lib/rails_bootstrap_form/inputs/weekday_select.rb
rails_bootstrap_form-0.8.0 lib/rails_bootstrap_form/inputs/weekday_select.rb
rails_bootstrap_form-0.7.2 lib/rails_bootstrap_form/inputs/weekday_select.rb
rails_bootstrap_form-0.7.1 lib/rails_bootstrap_form/inputs/weekday_select.rb