diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2006-03-28 03:31:01 +0000 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2006-03-28 03:31:01 +0000 |
commit | 218406570d9ee0ce6880552540e08749d5f389ab (patch) | |
tree | 6858270b654c8b14a7c81c34039db2f7c56623cc /activesupport/lib | |
parent | c4590d577c17ef8797ac620444d42c9ea7806d47 (diff) | |
download | rails-218406570d9ee0ce6880552540e08749d5f389ab.tar.gz rails-218406570d9ee0ce6880552540e08749d5f389ab.tar.bz2 rails-218406570d9ee0ce6880552540e08749d5f389ab.zip |
Fixed docs
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4081 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activesupport/lib')
-rw-r--r-- | activesupport/lib/active_support/json.rb | 5 | ||||
-rw-r--r-- | activesupport/lib/active_support/json/encoders/core.rb | 2 |
2 files changed, 4 insertions, 3 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 diff --git a/activesupport/lib/active_support/json/encoders/core.rb b/activesupport/lib/active_support/json/encoders/core.rb index d3193af555..97f994ac9a 100644 --- a/activesupport/lib/active_support/json/encoders/core.rb +++ b/activesupport/lib/active_support/json/encoders/core.rb @@ -1,6 +1,6 @@ module ActiveSupport module JSON #:nodoc: - module Encoders + module Encoders #:nodoc: define_encoder Object do |object| object.instance_values.to_json end |