lib/rabbit/element/image.rb in rabbit-0.9.3 vs lib/rabbit/element/image.rb in rabbit-1.0.0
- old
+ new
@@ -22,9 +22,10 @@
attr_reader :relative_padding_top, :relative_padding_bottom
attr_reader :relative_padding_left, :relative_padding_right
def initialize(filename, prop)
@filename = filename
+ prop = Utils.stringify_hash_key(prop)
super(filename, prop)
normalized_prop = {}
prop.each do |name, value|
normalized_prop[name.gsub(/-/, '_')] = value
end