lib/mls/models/listing.rb in mls-0.2.32 vs lib/mls/models/listing.rb in mls-0.2.33

- old
+ new

@@ -242,12 +242,10 @@ class MLS::Listing::Parser < MLS::Parser def photos=(photos) - @object.photos = photos.map do |p| - MLS::Photo.new(:digest => p[:digest], :id => p[:id].to_i) - end + @object.photos = photos.map {|p| MLS::Photo::Parser.build(p)} end def videos=(videos) @object.videos = videos.map do |video| MLS::Video::Parser.build(video)