mls 0.2.28 → 0.2.29
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/mls/models/address.rb +1 -1
- data/lib/mls/models/listing.rb +1 -1
- data/mls.gemspec +1 -1
- metadata +3 -3
data/lib/mls/models/address.rb
CHANGED
@@ -81,7 +81,7 @@ class MLS::Address < MLS::Resource
|
|
81
81
|
def to_hash
|
82
82
|
hash = super
|
83
83
|
hash[:photo_ids] = photos.map(&:id) if photos
|
84
|
-
hash[:videos_attributes] = videos.map(&:to_hash)
|
84
|
+
hash[:videos_attributes] = videos.map(&:to_hash) unless videos.blank?
|
85
85
|
hash
|
86
86
|
end
|
87
87
|
|
data/lib/mls/models/listing.rb
CHANGED
@@ -169,7 +169,7 @@ class MLS::Listing < MLS::Resource
|
|
169
169
|
hash[:address_attributes] = address.to_hash if address
|
170
170
|
hash[:agents_attributes] = agents.inject([]) { |acc, x| acc << x.to_hash; acc } if agents
|
171
171
|
hash[:photo_ids] = photos.map(&:id) if photos
|
172
|
-
hash[:videos_attributes] = videos.map(&:to_hash)
|
172
|
+
hash[:videos_attributes] = videos.map(&:to_hash) unless videos.blank?
|
173
173
|
hash
|
174
174
|
end
|
175
175
|
|
data/mls.gemspec
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mls
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.29
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2013-02-
|
13
|
+
date: 2013-02-12 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: rake
|
@@ -283,7 +283,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
283
283
|
version: '0'
|
284
284
|
requirements: []
|
285
285
|
rubyforge_project: mls
|
286
|
-
rubygems_version: 1.8.
|
286
|
+
rubygems_version: 1.8.24
|
287
287
|
signing_key:
|
288
288
|
specification_version: 3
|
289
289
|
summary: 42Floors MLS Client
|