-
Notifications
You must be signed in to change notification settings - Fork 10
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
Remove activesupport
dependency
#66
Comments
Rather than monkey-matching core classes, I'd recommend creating a separate class which has all the methods and calling them explicitly, like this. |
@shioyama Thanks for the helpful comment. I agree with your suggestion 👍 I knew some of the above methods were ActiveSupport features, but some I was surprised about. In particular I wish |
I learned that you can get the same result as |
That is neat, and it would work here. Reading up it seems that the notation |
Required changes:
Array.split
Array.wrap
Object.present?
andObject.blank?
String.underscore
try
to safe navigation operator&.
The text was updated successfully, but these errors were encountered: