Skip to content

Conversation

@KrauseFx
Copy link
Contributor

@KrauseFx KrauseFx commented Oct 8, 2013

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'.

@elspethsoup
Copy link
Member

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.

@KrauseFx
Copy link
Contributor Author

No, it's working, try the following code in the irb:

nil.to_s.empty?

@elspethsoup
Copy link
Member

I stand corrected. It works as you say.

elspethsoup added a commit that referenced this pull request Mar 10, 2014
Remove rails method 'blank?'
@elspethsoup elspethsoup merged commit cc35613 into rubycas:master Mar 10, 2014
@KrauseFx
Copy link
Contributor Author

Awesome, thanks for merging 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants