Sha256: e21f989c2b2cf421fdf5cf6ced939b2ce84a9c8081d324b742f07f9dcf96dc10

Contents?: true

Size: 328 Bytes

Versions: 16

Compression:

Stored size: 328 Bytes

Contents

module Formstrap
  class SwitchView < ViewModel
    def options
      default_options.deep_merge(to_h)
    end

    private

    def default_options
      {
        wrapper: default_wrapper_options
      }
    end

    def default_wrapper_options
      {
        class: %w[form-check form-switch mb-3]
      }
    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

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