Closed KrauseFx closed 10 years ago
We can remove usage of blank, but the implementation you provided will error when the values are nil. ActiveSupport's blank? will return true on nil.
No, it's working, try the following code in the irb:
nil.to_s.empty?
I stand corrected. It works as you say.
Awesome, thanks for merging :+1:
I'm using rubycas-client without rails. The method 'blank?' is only available in the rails environment.
This pull request removes this requirement and allows us to use rubycas without adding the blank method to 'Object'.