aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/json/variable.rb
blob: 2c7b449a507763caf13f618c26ed80170eecbd32 (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(options = nil)
          self
        end
    end
  end
end