Skip to content

Commit 2bb8296

Browse files
authored
Merge pull request rails#52448 from jhawthorn/symbol_as_json
Use name for Symbol#as_json
2 parents 4b9e874 + 103bce2 commit 2bb8296

File tree

1 file changed

+1
-1
lines changed
  • activesupport/lib/active_support/core_ext/object

1 file changed

+1
-1
lines changed

activesupport/lib/active_support/core_ext/object/json.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ def as_json(options = nil) # :nodoc:
105105

106106
class Symbol
107107
def as_json(options = nil) # :nodoc:
108-
to_s
108+
name
109109
end
110110
end
111111

0 commit comments

Comments
 (0)