Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixing import.

  • Loading branch information...
commit 784aeccd16a25f8969b421c9dd4869d078ef8f0a 1 parent 8756758
James R. Bracy waratuman authored

Showing 2 changed files with 2 additions and 2 deletions. Show diff stats Hide diff stats

  1. +1 1  lib/mls/models/listing.rb
  2. +1 1  mls.gemspec
2  lib/mls/models/listing.rb
@@ -165,7 +165,7 @@ def save
165 165 def to_hash
166 166 hash = super
167 167 hash[:address_attributes] = address.to_hash if address
168   - hash[:agents_attributes] = agents.inject({}) { |acc, x| acc[acc.length] = x.to_hash; acc } if agents
  168 + hash[:agents_attributes] = agents.inject([]) { |acc, x| acc << x.to_hash; acc } if agents
169 169 hash[:photo_ids] = photos.map(&:id) if photos
170 170 hash[:videos_attributes] = videos.map(&:to_hash) if videos
171 171 hash
2  mls.gemspec
@@ -3,7 +3,7 @@ $:.push File.expand_path("../lib", __FILE__)
3 3
4 4 Gem::Specification.new do |s|
5 5 s.name = "mls"
6   - s.version = '0.2.21'
  6 + s.version = '0.2.22'
7 7 s.authors = ["James R. Bracy"]
8 8 s.email = ["james@42floors.com"]
9 9 s.homepage = "http://mls.42floors.com"

0 comments on commit 784aecc

Please sign in to comment.
Something went wrong with that request. Please try again.