aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/json/encoders/false_class.rb
diff options
context:
space:
mode:
Diffstat (limited to 'activesupport/lib/active_support/json/encoders/false_class.rb')
-rw-r--r--activesupport/lib/active_support/json/encoders/false_class.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/activesupport/lib/active_support/json/encoders/false_class.rb b/activesupport/lib/active_support/json/encoders/false_class.rb
new file mode 100644
index 0000000000..78524e2a03
--- /dev/null
+++ b/activesupport/lib/active_support/json/encoders/false_class.rb
@@ -0,0 +1,5 @@
+class FalseClass
+ def to_json #:nodoc:
+ 'false'
+ end
+end