aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/json.rb
diff options
context:
space:
mode:
Diffstat (limited to 'activesupport/lib/active_support/json.rb')
-rw-r--r--activesupport/lib/active_support/json.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/activesupport/lib/active_support/json.rb b/activesupport/lib/active_support/json.rb
index 943adebd35..7d5304ddd4 100644
--- a/activesupport/lib/active_support/json.rb
+++ b/activesupport/lib/active_support/json.rb
@@ -2,11 +2,12 @@ require 'active_support/json/encoders'
module ActiveSupport
module JSON #:nodoc:
- class CircularReferenceError < StandardError; end
+ class CircularReferenceError < StandardError #:nodoc:
+ end
# returns the literal string as its JSON encoded form. Useful for passing javascript variables into functions.
#
# page.call 'Element.show', ActiveSupport::JSON::Variable.new("$$(#items li)")
- class Variable < String
+ class Variable < String #:nodoc:
def to_json
self
end