aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/json/encoders/string.rb
blob: 4a6b21c1c0c387f8e369304144cd8f3ad2ea423d (plain) (blame)
1
2
3
4
5
6
class String
  private
    def rails_to_json(*)
      ActiveSupport::JSON::Encoding.escape(self)
    end
end