-
Notifications
You must be signed in to change notification settings - Fork 550
change sql_state to attr_reader to avoid ruby warning #544
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Oh, interesting issue. I always took |
attr_reader just define the getter , attr_writer define the setter, and attr_accesor define both. |
What's your used Ruby implementation, version and are you using any of those options?
|
Any ruby implementation . https://travis-ci.org/rails/rails/jobs/35231944 |
Ahh, you mean this:
ruby -w |
The question is: Should be mysql2 warning proof? |
@simi , Why it shouldn't ? |
I don't know, when i changed it some of the gems i monitor broke. I don't remember which one, but i had the exact implementation. |
change sql_state to attr_reader to avoid ruby warning
this patch will remove this warning