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

- old
+ new

@@ -10,11 +10,11 @@ property :file_name, String property :file_size, Fixnum property :url_template, String property :caption, String - def url(style='large', protocol='http') - "#{protocol}://#{MLS.asset_host}/photos/#{style}/#{@digest}.jpg" + def url(style='700x467#', protocol='http') + "#{protocol}://#{MLS.image_host}/#{digest}.jpg?s=#{URI.escape(style)}" end def self.create(attrs) attrs[:file].rewind url = MLS.url.dup