Sha256: 432374f2e59aa3d07fb88653f0f2c187f4ab45e4568cc84e753153de8a8637bb

Contents?: true

Size: 581 Bytes

Versions: 1

Compression:

Stored size: 581 Bytes

Contents

module Formtastic
  module Inputs
    # Alias for NumberInput for backwards compatibility with 1.x.
    # 
    # @example:
    #   f.input :age, :as => :numeric
    #
    # @deprecated Use :as => :number instead
    #
    # @todo Remove on or after 2.1
    class NumericInput < NumberInput
      
      def initialize(builder, template, object, object_name, method, options)
        ActiveSupport::Deprecation.warn(':as => :numeric has been deprecated in favor of :as => :number and will be removed on or after version 2.1', caller)
        super
      end
      
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
nuatt-formtastic-0.2.3 lib/formtastic/inputs/numeric_input.rb