Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixing import.

  • Loading branch information...
commit 784aeccd16a25f8969b421c9dd4869d078ef8f0a 1 parent 8756758
@waratuman waratuman authored
Showing with 2 additions and 2 deletions.
  1. +1 −1  lib/mls/models/listing.rb
  2. +1 −1  mls.gemspec
View
2  lib/mls/models/listing.rb
@@ -165,7 +165,7 @@ def save
def to_hash
hash = super
hash[:address_attributes] = address.to_hash if address
- hash[:agents_attributes] = agents.inject({}) { |acc, x| acc[acc.length] = x.to_hash; acc } if agents
+ hash[:agents_attributes] = agents.inject([]) { |acc, x| acc << x.to_hash; acc } if agents
hash[:photo_ids] = photos.map(&:id) if photos
hash[:videos_attributes] = videos.map(&:to_hash) if videos
hash
View
2  mls.gemspec
@@ -3,7 +3,7 @@ $:.push File.expand_path("../lib", __FILE__)
Gem::Specification.new do |s|
s.name = "mls"
- s.version = '0.2.21'
+ s.version = '0.2.22'
s.authors = ["James R. Bracy"]
s.email = ["james@42floors.com"]
s.homepage = "http://mls.42floors.com"
Please sign in to comment.
Something went wrong with that request. Please try again.