Sha256: 6ae6e9ca4de27f05f4cc48b724224c74aa6441565e39d36e3e3b6602f72622e2

Contents?: true

Size: 583 Bytes

Versions: 8

Compression:

Stored size: 583 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

8 entries across 8 versions & 1 rubygems

Version Path
formtastic-2.0.2 lib/formtastic/inputs/numeric_input.rb
formtastic-2.0.1 lib/formtastic/inputs/numeric_input.rb
formtastic-2.0.0 lib/formtastic/inputs/numeric_input.rb
formtastic-2.0.0.rc5 lib/formtastic/inputs/numeric_input.rb
formtastic-2.0.0.rc4 lib/formtastic/inputs/numeric_input.rb
formtastic-2.0.0.rc3 lib/formtastic/inputs/numeric_input.rb
formtastic-2.0.0.rc2 lib/formtastic/inputs/numeric_input.rb
formtastic-2.0.0.rc1 lib/formtastic/inputs/numeric_input.rb