-
Notifications
You must be signed in to change notification settings - Fork 7
Open
Description
It seems that using .blank? On line 26 causes an error unless using this inside a rails app:
NoMethodError: undefined method `blank?' for "dedicated.server.com":String
from ~/.rvm/gems/ruby-1.9.3-p547/gems/whm_xml-0.3.2/lib/parameters.rb:26:in `block in requires!'
Perhaps don't use .blank? is the best option. Also I saw someone use a monkeypatch to fix something similar but it's probably not good practice:
unless Object.new.respond_to? :blank?
class Object
def blank?
respond_to?(:empty?) ? empty? : !self
end
end
end
Metadata
Metadata
Assignees
Labels
No labels