Sha256: 8c78848a8e2309cf8ee09e6115516097d25d680f70c016db81cd9f286f0c756c

Contents?: true

Size: 405 Bytes

Versions: 16

Compression:

Stored size: 405 Bytes

Contents

module Formstrap
  module InputGroupable
    extend ActiveSupport::Concern

    included do
      def input_group_options
        default_input_group_options.merge(@input_group || {})
      end

      private

      def default_input_group_options
        {
          bypass: !(prepend || append || @input_group),
          prepend: prepend,
          append: append
        }
      end
    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
formstrap-0.4.5 app/models/concerns/formstrap/input_groupable.rb
formstrap-0.4.4 app/models/concerns/formstrap/input_groupable.rb
formstrap-0.4.3 app/models/concerns/formstrap/input_groupable.rb
formstrap-0.4.2 app/models/concerns/formstrap/input_groupable.rb
formstrap-0.3.5 app/models/concerns/formstrap/input_groupable.rb
formstrap-0.3.4 app/models/concerns/formstrap/input_groupable.rb
formstrap-0.3.3 app/models/concerns/formstrap/input_groupable.rb
formstrap-0.3.2 app/models/concerns/formstrap/input_groupable.rb
formstrap-0.3.1 app/models/concerns/formstrap/input_groupable.rb
formstrap-0.3.0 app/models/concerns/formstrap/input_groupable.rb
formstrap-0.2.1 app/models/concerns/formstrap/input_groupable.rb
formstrap-0.2.0 app/models/concerns/formstrap/input_groupable.rb
formstrap-0.1.3 app/models/concerns/formstrap/input_groupable.rb
formstrap-0.1.2 app/models/concerns/formstrap/input_groupable.rb
formstrap-0.1.1 app/models/concerns/formstrap/input_groupable.rb
formstrap-0.1.0 app/models/concerns/formstrap/input_groupable.rb