1
0
Fork 0
mirror of https://github.com/awesome-print/awesome_print synced 2023-03-27 23:22:34 -04:00

Replace Rails method with Ruby equivilent

There was a crash when accessing hashes while not inside a rails
environment. This was due to us accidentally using a String method
which is only available in Rails.
This commit is contained in:
Gerard Caulfield 2016-08-30 01:07:06 +10:00
parent c4edb02e66
commit 4e4d56eda7
No known key found for this signature in database
GPG key ID: 623B327128A9BEC3

View file

@ -47,7 +47,7 @@ module AwesomePrint
private
def symbol?(k)
k.first == ':'
k[0] == ':'
end
def ruby19_syntax(k, v, width)