aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/json/variable.rb
blob: daa7449b71f0f64724124adfd84429c2e94388d3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
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