lib/mls/models/flyer.rb in mls-0.2.35 vs lib/mls/models/flyer.rb in mls-0.2.36
- old
+ new
@@ -10,11 +10,11 @@
def url(protocol='http')
"#{protocol}://#{MLS.asset_host}/flyers/#{digest}/#{file_name}"
end
- def avatar(size='150x100', protocol='http')
- "#{protocol}://#{MLS.asset_host}/photos/#{size}/#{avatar_digest}.jpg"
+ def avatar(size='150x100#', protocol='http')
+ "#{protocol}://#{MLS.image_host}/#{avatar_digest}.jpg?s=#{URI.escape(size)}"
end
def self.create(attrs)
attrs[:file].rewind
url = MLS.url.dup