1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/activesupport/lib/active_support/json/variable.rb

12 lines
212 B
Ruby
Raw Normal View History

module ActiveSupport
module JSON
# A string that returns itself as its JSON-encoded form.
class Variable < String
2009-04-26 18:54:28 -04:00
private
def rails_to_json(*)
2009-04-26 18:54:28 -04:00
self
end
end
end
end