OSDN Git Service

ActiveLdap 1.2.4
[redminele/redminele.git] / ruby / lib / ruby / gems / 1.8 / gems / activesupport-2.3.12 / lib / active_support / json / encoders / true_class.rb
diff --git a/ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.12/lib/active_support/json/encoders/true_class.rb b/ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.12/lib/active_support/json/encoders/true_class.rb
new file mode 100644 (file)
index 0000000..4b65dee
--- /dev/null
@@ -0,0 +1,7 @@
+class TrueClass
+  AS_JSON = ActiveSupport::JSON::Variable.new('true').freeze
+
+  def as_json(options = nil) #:nodoc:
+    AS_JSON
+  end
+end