caboose-rets 0.1.66 → 0.1.67
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
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: d9cd8867262e3502225209083c9b790406b8a25b
|
|
4
|
+
data.tar.gz: 846994b1dee58ce2a049c288ae44c9eaf49ba30c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 775aa8aa329879a0118e5975e13e74d4ed8c53f1bfe540e3602a40aa8151b9ace13286dbbee984224ad4404597abf444bc1df00d7d46038b05bb2743f6490f6f
|
|
7
|
+
data.tar.gz: 13730a2d5156988fc2125f9c1c5d467221fde283318f3045b679b494ddb08ca16d0656150a49d1d68b04989fede3c1cd2f73eee350b8af8ea5812a5678c96569
|
|
@@ -207,9 +207,12 @@ module CabooseRets
|
|
|
207
207
|
|
|
208
208
|
# @route GET /rets/listings-feed/:fieldtype
|
|
209
209
|
def facebook_listings_feed
|
|
210
|
+
@use_alternate_link = false
|
|
210
211
|
rc = CabooseRets::RetsConfig.where(:site_id => @site.id).first
|
|
211
212
|
if params[:fieldtype] == 'agent' && rc && !rc.agent_mls.blank?
|
|
212
213
|
if @site.id == 558
|
|
214
|
+
# Gray Group listings
|
|
215
|
+
@use_alternate_link = true
|
|
213
216
|
@properties = CabooseRets::Property.where(:status => 'Active').where("list_agent_mls_id in (?)", ['118593705','118511951','118598750','SCHMANDTT','118599999','118509093','118518704','118515504']).order("original_entry_timestamp DESC").take(100)
|
|
214
217
|
else
|
|
215
218
|
@properties = CabooseRets::Property.where("list_agent_mls_id = ?", rc.agent_mls).where(:status => 'Active').order("original_entry_timestamp DESC").take(100)
|
|
@@ -34,7 +34,7 @@ xml.instruct! :xml, :version => "1.0"
|
|
|
34
34
|
xml.listing_type('for_sale_by_agent')
|
|
35
35
|
xml.num_baths(property.baths_total)
|
|
36
36
|
xml.num_beds(property.beds_total)
|
|
37
|
-
if !property.alternate_link.blank?
|
|
37
|
+
if !property.alternate_link.blank? && @use_alternate_link == true
|
|
38
38
|
xml.url(property.alternate_link)
|
|
39
39
|
else
|
|
40
40
|
xml.url("https://" + domain + "/properties/#{property.mls_number}/details")
|
data/lib/caboose_rets/version.rb
CHANGED