Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Make sure we convert to sym

  • Loading branch information...
commit c39e3c51bda82bba0948daab30ff5ed512adee91 1 parent c07f94f
Sebastian von Conrad authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/in_bed_with/adsense.rb
2  lib/in_bed_with/adsense.rb
View
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.