Sha256: 27643bf95e1376fecd11f3981b3f718557e04b977d9ed075fb8e2e83e4d6409b

Contents?: true

Size: 267 Bytes

Versions: 147

Compression:

Stored size: 267 Bytes

Contents

class Numeric
  def to_json(options = nil) #:nodoc:
    to_s
  end

  def as_json(options = nil) #:nodoc:
    self
  end
end

class Float
  def to_json(options = nil) #:nodoc:
    to_s
  end
end

class Integer
  def to_json(options = nil) #:nodoc:
    to_s
  end
end

Version data entries

147 entries across 116 versions & 14 rubygems

Version Path
activesupport-2.3.8.pre1 lib/active_support/json/encoders/numeric.rb
activesupport-2.3.7 lib/active_support/json/encoders/numeric.rb
activesupport-2.3.6 lib/active_support/json/encoders/numeric.rb
radiant-0.8.2 vendor/rails/activesupport/lib/active_support/json/encoders/numeric.rb
radiant-0.9.0.rc2 vendor/rails/activesupport/lib/active_support/json/encoders/numeric.rb
webroar-0.3.1 src/admin_panel/vendor/rails/activesupport/lib/active_support/json/encoders/numeric.rb
webroar-0.3.0 src/admin_panel/vendor/rails/activesupport/lib/active_support/json/encoders/numeric.rb
usher-0.7.0 spec/rails2_3/vendor/rails/vendor/rails/activesupport/lib/active_support/json/encoders/numeric.rb
usher-0.7.0 spec/rails2_3/vendor/rails/vendor/rails/activesupport/pkg/activesupport-2.3.3/lib/active_support/json/encoders/numeric.rb
activesupport-2.3.6.pre lib/active_support/json/encoders/numeric.rb
simply_stated-0.0.5 vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/json/encoders/numeric.rb
simply_stated-0.0.4 vendor/gems/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/json/encoders/numeric.rb
ginst-2009.12.8 vendor/rails/activesupport/lib/active_support/json/encoders/numeric.rb
activesupport-2.3.5 lib/active_support/json/encoders/numeric.rb
ginst-2009.11.24 vendor/rails/activesupport/lib/active_support/json/encoders/numeric.rb
ginst-2009.11.23 vendor/rails/activesupport/lib/active_support/json/encoders/numeric.rb
ginst-2.0.1 vendor/rails/activesupport/lib/active_support/json/encoders/numeric.rb
ginst-2.0.0 vendor/rails/activesupport/lib/active_support/json/encoders/numeric.rb
gemstreamer-1.2.0 spec/assets/testapp/vendor/rails/activesupport/lib/active_support/json/encoders/numeric.rb
gemstreamer-1.1.1 spec/assets/testapp/vendor/rails/activesupport/lib/active_support/json/encoders/numeric.rb