Sha256: a4105a6049875f544b9e8ffb500e5d9e62027ecef8afdc33d686eb0d69265eec

Contents?: true

Size: 378 Bytes

Versions: 16

Compression:

Stored size: 378 Bytes

Contents

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

Version data entries

16 entries across 16 versions & 1 rubygems

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