lib/mls/models/listing.rb in mls-0.2.35 vs lib/mls/models/listing.rb in mls-0.2.36

- old
+ new

@@ -67,12 +67,12 @@ property :avatar_digest, String, :serialize => false attr_accessor :address, :agents, :account, :photos, :flyer, :floorplan, :videos attr_writer :amenities - def avatar(size='150x100', protocol='http') + def avatar(size='150x100#', protocol='http') if avatar_digest - "#{protocol}://#{MLS.asset_host}/photos/#{size}/#{avatar_digest}.jpg" + "#{protocol}://#{MLS.image_host}/#{avatar_digest}.jpg?s=#{URI.escape(size)}" else address.avatar(size, protocol) end end