Sha256: ba6333030c52c587494cdfe5d0a78d304e65774a78c90ad50b7cdd744b7fc642

Contents?: true

Size: 351 Bytes

Versions: 16

Compression:

Stored size: 351 Bytes

Contents

module Headmin
  module Form
    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
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
headmin-0.6.3 app/models/headmin/form/input_group_view.rb
headmin-0.6.2 app/models/headmin/form/input_group_view.rb
headmin-0.6.1 app/models/headmin/form/input_group_view.rb
headmin-0.6.0 app/models/headmin/form/input_group_view.rb
headmin-0.5.9 app/models/headmin/form/input_group_view.rb
headmin-0.5.8 app/models/headmin/form/input_group_view.rb
headmin-0.5.7 app/models/headmin/form/input_group_view.rb
headmin-0.5.6 app/models/headmin/form/input_group_view.rb
headmin-0.5.5 app/models/headmin/form/input_group_view.rb
headmin-0.5.4 app/models/headmin/form/input_group_view.rb
headmin-0.5.3 app/models/headmin/form/input_group_view.rb
headmin-0.5.2 app/models/headmin/form/input_group_view.rb
headmin-0.5.1 app/models/headmin/form/input_group_view.rb
headmin-0.5.0 app/models/headmin/form/input_group_view.rb
headmin-0.4.2 app/models/headmin/form/input_group_view.rb
headmin-0.4.1 app/models/headmin/form/input_group_view.rb