Sha256: 839021ab8225cd6465e084b6b711396ecb4baf97c5be3b934fe170ef39d0949a

Contents?: true

Size: 319 Bytes

Versions: 3

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

      private

      def attribute_required?
        false
      end

      def required_class
        nil
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
simple_form-1.5.2 lib/simple_form/inputs/hidden_input.rb
simple_form-1.5.1 lib/simple_form/inputs/hidden_input.rb
simple_form-1.5.0 lib/simple_form/inputs/hidden_input.rb