mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Add an ignored options parameter to ActiveSupport::JSON::Variable#to_json to make sure it duck-types nicely with the other JSON types. [Pascal Belloncle]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8013 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
This commit is contained in:
parent
2d208eb3a0
commit
192e463d05
1 changed files with 1 additions and 1 deletions
|
@ -2,7 +2,7 @@ module ActiveSupport
|
|||
module JSON
|
||||
# A string that returns itself as its JSON-encoded form.
|
||||
class Variable < String
|
||||
def to_json
|
||||
def to_json(options=nil)
|
||||
self
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue