39 40 41 42 43
# File 'app/models/tenon/asset.rb', line 39 def dimensions(style = :original) attach = style.to_sym == :original ? attachment : attachment.styles[style] file = Paperclip.io_adapters.for(attach) Paperclip::Geometry.from_file(file).to_s.split('x') end