Sha256: 7c6158f673e70fcac3b7249c9747e72ec7d359949b63acc89e8437c303512e37

Contents?: true

Size: 282 Bytes

Versions: 17

Compression:

Stored size: 282 Bytes

Contents

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

    private

    def default_options
      {
        class: ["mb-3"]
      }
    end
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

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