Permalink
Browse files

fixing hash.nil error

  • Loading branch information...
1 parent 9fac71a commit c3097adaf985a7e52ef2b076f22c15fb2950bebd @matenia matenia committed Jun 4, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/omniture_client.rb
View
2 lib/omniture_client.rb
@@ -12,7 +12,7 @@ class << self
attr_accessor :aliases, :base_url, :ssl_url, :suite, :version
def config(config_hash)
- raise ArgumentError, "You must supply a configuration hash to OmnitureClient#config" if config_hash.nil
+ raise ArgumentError, "You must supply a configuration hash to OmnitureClient#config" if config_hash.blank?
config_hash.each do |key, val|
send("#{key}=", val)
end

0 comments on commit c3097ad

Please sign in to comment.