Permalink
Browse files

Fix listings association in addresses.

  • Loading branch information...
1 parent a5035d8 commit 6cf8b65903c1a5d57c5f6e57a4d0ad7bb266a981 @dana11235 dana11235 committed Sep 6, 2012
Showing with 4 additions and 4 deletions.
  1. +4 −4 lib/mls/models/address.rb
View
8 lib/mls/models/address.rb
@@ -81,10 +81,10 @@ def all(options={})
class MLS::Address::Parser < MLS::Parser
def listings=(listings)
- @object.listings = listings.map { |d|
- d = MLS::Listing::Parser.build(d)
- d.address = @object
- d
+ @object.listings = listings.map { |data|
+ listing = MLS::Listing::Parser.build(data)
+ listing.address = @object
+ listing
}
end

0 comments on commit 6cf8b65

Please sign in to comment.