Sha256: 2468be983b129bfb5c5a21b8a5446898d07a28c1bfa803c8f04f070d86700d8f

Contents?: true

Size: 319 Bytes

Versions: 5

Compression:

Stored size: 319 Bytes

Contents

module SimpleForm
  module Inputs
    class HiddenInput < Base
      def render
        @builder.hidden_field(attribute_name, input_html_options)
      end
      alias :input :render

    protected

      def attribute_required?
        false
      end

      def required_class
        nil
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
simple_form-1.4.2 lib/simple_form/inputs/hidden_input.rb
simple_form-1.4.1 lib/simple_form/inputs/hidden_input.rb
simple_form-1.4.0 lib/simple_form/inputs/hidden_input.rb
simple_form-1.3.1 lib/simple_form/inputs/hidden_input.rb
simple_form-1.3.0 lib/simple_form/inputs/hidden_input.rb