Update to latest Rails. A little bit of jiggery-pokery is involved, since they neglected to re-include vendored Rack in this release.
8 lines
137 B
Ruby
8 lines
137 B
Ruby
class NilClass
|
|
AS_JSON = ActiveSupport::JSON::Variable.new('null').freeze
|
|
|
|
def as_json(options = nil) #:nodoc:
|
|
AS_JSON
|
|
end
|
|
end
|