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-rails doesn't work with the Draper gem #6

Closed stiptomediajeroeningen closed 11 years ago

stiptomediajeroeningen commented 11 years ago

E.g. I have the following decoraor: class PowersupplierDecorator < Draper::Base decorates :powersupplier

def logo h.image_tag powersupplier.logo.url(:thumb), :alt => "Logo #{self[:name]}", :title => self[:name] end end

Sadly, the width and height aren't automatically added.