lib/mls/models/flyer.rb in mls-0.5.3 vs lib/mls/models/flyer.rb in mls-0.5.4

- old
+ new

@@ -7,10 +7,10 @@ property :avatar_digest, String property :file_name, String property :file_size, Fixnum def url(protocol='http') - "#{protocol}://#{MLS.asset_host}/flyers/#{digest}/#{file_name}" + "#{protocol}://#{MLS.asset_host}/flyers/#{digest}/compressed/#{file_name}" end def avatar(size='150x100#', protocol='http') "#{protocol}://#{MLS.image_host}/#{avatar_digest}.jpg?s=#{URI.escape(size)}" end