Sha256: 76b28f9802dc050199a4a2443fa46416723b00d64cf70ec56eaae28a4ae6e489

Contents?: true

Size: 420 Bytes

Versions: 1

Compression:

Stored size: 420 Bytes

Contents

module GenericFormFor 
  module Inputs
    class NumberInput
      include Base
      include Number
      
      def input_html_options
        {
          :type => "number",
          :size => nil
        }.merge(super)
      end
      
      def input_html(config_options={})
        template.concat builder.text_field(method, merge_html_options(input_html_options,config_options))
      end
      
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
generic_form_for-0.0.1 lib/generic_form_for/inputs/number_input.rb