aboutsummaryrefslogblamecommitdiffstats
path: root/activesupport/lib/active_support/json/variable.rb
blob: 7fd23b0a9e089101cdcd6177d769c2731363cb5f (plain) (tree)
1
2
3
4
5
6
7
8
9
10

                    
                                                            
                           
                              




            
module ActiveSupport
  module JSON
    # A string that returns itself as its JSON-encoded form.
    class Variable < String
      def to_json(options=nil)
        self
      end
    end
  end
end