caboose-rets 0.1.105 → 0.1.106
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 33e108857d9c9a3c387271a66446780d9a72fdd4bc96222830b88eb39b17f37d
|
|
4
|
+
data.tar.gz: bc4ab43973bcfb910f575755f95aa419361daff621316b4b502ba26db1fcbed1
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 188cb1739bf256712002615cf5d243ddc54cbb462550c4d1551debe6979f0fc490cd97a5c923272572fa71987a6904ffdcf92eec94fb9be257720aa8f00fe85c
|
|
7
|
+
data.tar.gz: 7241b5885953de0f9b08e425e0782cc5110e237cfcee8aa9ed53bea893917cd5aee9fea0a1e69bf011dff684a7e648759bfe91330d4d6286dafe5cf0c093344b
|
|
@@ -106,14 +106,7 @@ module CabooseRets
|
|
|
106
106
|
beds_min = @property.beds_total - 2 if @property
|
|
107
107
|
beds_max = @property.beds_total + 2 if @property
|
|
108
108
|
|
|
109
|
-
# price_min2 = @property.list_price * 0.5 if @property
|
|
110
|
-
# price_max2 = @property.list_price * 1.5 if @property
|
|
111
|
-
# beds_min2 = @property.beds_total - 3 if @property
|
|
112
|
-
# beds_max2 = @property.beds_total + 3 if @property
|
|
113
|
-
|
|
114
109
|
@related = Property.near("#{@property.latitude}, #{@property.longitude}", 50).where(:property_type => @property.property_type, :status => 'Active', :property_subtype => @property.property_subtype).where(price_where,price_min,price_max).where(beds_where,beds_min,beds_max).where("mls_number != ?",@property.mls_number).order('distance asc').limit(3) if @property
|
|
115
|
-
#@related = Property.near("#{@property.latitude}, #{@property.longitude}", 20).where(:property_type => @property.property_type, :status => 'Active', :property_subtype => @property.property_subtype).where(price_where,price_min2,price_max2).where(beds_where,beds_min2,beds_max2).where("mls_number != ?",@property.mls_number).order('distance asc').limit(3) if @property && @related.count == 0
|
|
116
|
-
|
|
117
110
|
|
|
118
111
|
if @property.nil?
|
|
119
112
|
@mls_number = params[:mls_number]
|
|
@@ -117,8 +117,8 @@ class CabooseRets::Property <ActiveRecord::Base
|
|
|
117
117
|
self.latitude = self.latitude
|
|
118
118
|
self.longitude = self.longitude
|
|
119
119
|
end
|
|
120
|
-
self.latitude = nil if self.latitude ==
|
|
121
|
-
self.longitude = nil if self.longitude ==
|
|
120
|
+
self.latitude = nil if self.latitude == 0.0
|
|
121
|
+
self.longitude = nil if self.longitude == 0.0
|
|
122
122
|
# self.landscaping = data['Landscaping']
|
|
123
123
|
self.laundry = data['LaundryFeatures']
|
|
124
124
|
self.legal_description = data['TaxLegalDescription']
|
data/lib/caboose_rets/version.rb
CHANGED