Created
April 27, 2011 00:05
-
-
Save caryp/943447 to your computer and use it in GitHub Desktop.
right_rackspace .blank? workaround
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# monkey patch: right_rackspace currently depends on rails .blank? method. | |
class Object | |
def blank? | |
respond_to?(:empty?) ? empty? : !self | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment