diff options
Diffstat (limited to 'activesupport/lib/active_support/json/encoders/symbol.rb')
-rw-r--r-- | activesupport/lib/active_support/json/encoders/symbol.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/activesupport/lib/active_support/json/encoders/symbol.rb b/activesupport/lib/active_support/json/encoders/symbol.rb new file mode 100644 index 0000000000..57291e5448 --- /dev/null +++ b/activesupport/lib/active_support/json/encoders/symbol.rb @@ -0,0 +1,5 @@ +class Symbol + def to_json #:nodoc: + ActiveSupport::JSON.encode(to_s) + end +end |