vendor/rails/activesupport/lib/active_support/json/encoders/nil_class.rb in radiant-0.8.0 vs vendor/rails/activesupport/lib/active_support/json/encoders/nil_class.rb in radiant-0.8.1
- old
+ new
@@ -1,5 +1,7 @@
class NilClass
- def to_json(options = nil) #:nodoc:
- 'null'
+ AS_JSON = ActiveSupport::JSON::Variable.new('null').freeze
+
+ def as_json(options = nil) #:nodoc:
+ AS_JSON
end
end