Sha256: 1fbc5d5e8444b5b0a3778538109c51e24ad07a22ef26cb210df1169c5869693b

Contents?: true

Size: 431 Bytes

Versions: 11

Compression:

Stored size: 431 Bytes

Contents

# frozen_string_literal: true
module SimpleForm
  module Inputs
    class HiddenInput < Base
      disable :label, :errors, :hint, :required

      def input(wrapper_options = nil)
        merged_input_options = merge_wrapper_options(input_html_options, wrapper_options)

        @builder.hidden_field(attribute_name, merged_input_options)
      end

      private

      def required_class
        nil
      end
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
simple_form-5.3.0 lib/simple_form/inputs/hidden_input.rb
simple_form-5.2.0 lib/simple_form/inputs/hidden_input.rb
simple_form-5.1.0 lib/simple_form/inputs/hidden_input.rb
simple_form-5.0.3 lib/simple_form/inputs/hidden_input.rb
simple_form-5.0.2 lib/simple_form/inputs/hidden_input.rb
simple_form-5.0.1 lib/simple_form/inputs/hidden_input.rb
simple_form-5.0.0 lib/simple_form/inputs/hidden_input.rb
simple_form-4.1.0 lib/simple_form/inputs/hidden_input.rb
simple_form-4.0.1 lib/simple_form/inputs/hidden_input.rb
simple_form-4.0.0 lib/simple_form/inputs/hidden_input.rb
simple_form-3.5.1 lib/simple_form/inputs/hidden_input.rb