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:
parent
c4edb02e66
commit
4e4d56eda7
1 changed files with 1 additions and 1 deletions
|
@ -47,7 +47,7 @@ module AwesomePrint
|
|||
private
|
||||
|
||||
def symbol?(k)
|
||||
k.first == ':'
|
||||
k[0] == ':'
|
||||
end
|
||||
|
||||
def ruby19_syntax(k, v, width)
|
||||
|
|
Loading…
Add table
Reference in a new issue