Closed tomasc closed 8 years ago
We have run into situations where the attr accessors return String instead of expected Symbol.
String
Symbol
To enforce the expected behaviour I added explicit to_sym on the two dynamically generated getter methods.
to_sym
This is actually connected to a bigger issue here:
https://jira.mongodb.org/browse/RUBY-1075?jql=project%20%3D%20RUBY%20AND%20resolution%20%3D%20Unresolved%20ORDER%20BY%20priority%20DESC%2C%20key%20DESC
Closing this.
We have run into situations where the attr accessors return
String
instead of expectedSymbol
.To enforce the expected behaviour I added explicit
to_sym
on the two dynamically generated getter methods.