2011-10-30 23:02:41 +00:00
|
|
|
module Locomotive
|
|
|
|
module Extensions
|
|
|
|
module Asset
|
|
|
|
module Vignette
|
|
|
|
|
|
|
|
def vignette_url
|
|
|
|
if self.image?
|
2011-11-19 15:41:16 +00:00
|
|
|
if self.width < 85 && self.height < 85
|
2011-10-30 23:02:41 +00:00
|
|
|
self.source.url
|
|
|
|
else
|
2011-11-19 15:41:16 +00:00
|
|
|
Locomotive::Dragonfly.resize_url(self.source, '85x85#')
|
2011-10-30 23:02:41 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|