Permalink
Browse files

Make sure we convert to sym

  • Loading branch information...
1 parent c07f94f commit c39e3c51bda82bba0948daab30ff5ed512adee91 Sebastian von Conrad committed Jan 28, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/in_bed_with/adsense.rb
@@ -31,7 +31,7 @@ def properties
if ad_width && ad_height
{ width: ad_width, height: ad_height }
elsif ad_type
- AD_TYPES[ad_type] or raise ArgumentError, "Ad type '#{ad_type}' is not known: Please use ad_width and ad_height parameters instead."
+ AD_TYPES[ad_type.to_sym] or raise ArgumentError, "Ad type '#{ad_type}' is not known: Please use ad_width and ad_height parameters instead."
else
raise ArgumentError, 'Please set either ad_type or ad_height/ad_width of the ad.'
end

0 comments on commit c39e3c5

Please sign in to comment.