instiki/vendor/rails/activesupport/lib/active_support/json/encoders/true_class.rb
Jacques Distler 664552ac02 Rails 2.3.3.1
Update to latest Rails.
A little bit of jiggery-pokery is involved, since they
neglected to re-include vendored Rack in this release.
2009-08-04 10:16:03 -05:00

8 lines
138 B
Ruby

class TrueClass
AS_JSON = ActiveSupport::JSON::Variable.new('true').freeze
def as_json(options = nil) #:nodoc:
AS_JSON
end
end