aboutsummaryrefslogblamecommitdiffstats
path: root/activesupport/lib/active_support/json/variable.rb
blob: 3ee152ee3ca6d815932f2c3d245d90079e70918a (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 rails_to_json(options=nil)
        self
      end
    end
  end
end