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
abiquo-etk-0.4.32 vendor/activesupport-2.3.8/lib/active_support/json/encoders/numeric.rb
abiquo-etk-0.4.29 vendor/activesupport-2.3.8/lib/active_support/json/encoders/numeric.rb
abiquo-etk-0.4.25 vendor/activesupport-2.3.8/lib/active_support/json/encoders/numeric.rb
abiquo-etk-0.4.24 vendor/activesupport-2.3.8/lib/active_support/json/encoders/numeric.rb
abiquo-etk-0.4.23 vendor/activesupport-2.3.8/lib/active_support/json/encoders/numeric.rb
abiquo-etk-0.4.22 vendor/activesupport-2.3.8/lib/active_support/json/encoders/numeric.rb
abiquo-etk-0.4.20 vendor/activesupport-2.3.8/lib/active_support/json/encoders/numeric.rb
abiquo-etk-0.4.19 vendor/activesupport-2.3.8/lib/active_support/json/encoders/numeric.rb
abiquo-etk-0.4.18 vendor/activesupport-2.3.8/lib/active_support/json/encoders/numeric.rb
abiquo-etk-0.4.17 vendor/activesupport-2.3.8/lib/active_support/json/encoders/numeric.rb
abiquo-etk-0.4.16 vendor/activesupport-2.3.8/lib/active_support/json/encoders/numeric.rb
abiquo-etk-0.4.15 vendor/activesupport-2.3.8/lib/active_support/json/encoders/numeric.rb
abiquo-etk-0.4.14 vendor/activesupport-2.3.8/lib/active_support/json/encoders/numeric.rb
abiquo-etk-0.4.13 vendor/activesupport-2.3.8/lib/active_support/json/encoders/numeric.rb
activesupport-2.3.10 lib/active_support/json/encoders/numeric.rb
activesupport-2.3.9 lib/active_support/json/encoders/numeric.rb
activesupport-2.3.9.pre lib/active_support/json/encoders/numeric.rb
webroar-0.4.0 src/admin_panel/vendor/rails/activesupport/lib/active_support/json/encoders/numeric.rb
radiant-0.9.1 vendor/rails/activesupport/lib/active_support/json/encoders/numeric.rb
activesupport-2.3.8 lib/active_support/json/encoders/numeric.rb