Skip to content

Commit cea1012

Browse files
jhawthornjoelhawksley
authored andcommitted
Use name for Symbol#as_json
1 parent bdf5fbe commit cea1012

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)