Sha256: c909457fdcfca62447a4f15181a5853c75da998efa3289149bb7322c09ffbcc7

Contents?: true

Size: 307 Bytes

Versions: 16

Compression:

Stored size: 307 Bytes

Contents

module Formstrap
  class InputGroupView < ViewModel
    def options
      keys = attributes - %i[bypass append prepend]
      options = to_h.slice(*keys)
      default_options.deep_merge(options)
    end

    private

    def default_options
      {
        class: ["input-group"]
      }
    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

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