lib/xway/api/endpoints.rb in xway-0.0.2.beta vs lib/xway/api/endpoints.rb in xway-0.0.3.beta
- old
+ new
@@ -60,10 +60,10 @@
private
def require_options options, *keys
missing_keys = []
keys.each do |key|
- if !options || options[key] == nil || options[key] == ''
+ if !options.is_a?(Hash) || options[key] == nil || options[key] == ''
missing_keys << key
end
end
unless missing_keys.empty?
raise MissingParameter, "Missing app parameter(s): "\