elia / dimensions-rails

Improve browser rendering adding the size to <img> tags
http://elia.github.com/dimensions-rails/
MIT License
49 stars 10 forks source link

dimensions="false" added to img tags #10

Closed felixbuenemann closed 11 years ago

felixbuenemann commented 11 years ago

If img_tag(asset, dimeonsions: false) is used, the :dimensions key is not removed from the options and is added as an attribute to the img tag: <img src="asset" dimeonsions="false"/>.

elia commented 11 years ago

Thanks! Only thing missing now is a test… :)

felixbuenemann commented 11 years ago

Yes, I was about to look into the specs when my cable uplink broke, so I'll have to look into it later.

felixbuenemann commented 11 years ago

Ok, I wrote a quick spec on my iPad.