lib/mls/models/listing.rb in mls-0.2.33 vs lib/mls/models/listing.rb in mls-0.2.34
- old
+ new
@@ -242,10 +242,12 @@
class MLS::Listing::Parser < MLS::Parser
def photos=(photos)
- @object.photos = photos.map {|p| MLS::Photo::Parser.build(p)}
+ @object.photos = photos.map do |p|
+ MLS::Photo.new(:digest => p[:digest], :id => p[:id].to_i)
+ end
end
def videos=(videos)
@object.videos = videos.map do |video|
MLS::Video::Parser.build(video)