mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
11 lines
212 B
Ruby
11 lines
212 B
Ruby
module ActiveSupport
|
|
module JSON
|
|
# A string that returns itself as its JSON-encoded form.
|
|
class Variable < String
|
|
private
|
|
def rails_to_json(*)
|
|
self
|
|
end
|
|
end
|
|
end
|
|
end
|