caboose-rets 0.0.22 → 0.0.24
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/app/models/caboose_rets/commercial_property.rb +3 -3
- data/app/models/caboose_rets/land_property.rb +3 -3
- data/app/models/caboose_rets/multi_family_property.rb +3 -3
- data/app/models/caboose_rets/residential_property.rb +3 -3
- data/lib/caboose_rets/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
YzA4YzA0OGM3N2I2MDlkNmVhZmIyYzc3OGY5NWVkMTFkYzUwOTg1Nw==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
ZTdlN2M4YTMwZWQ5OWUwNzM5ZDEyYmViMDIwZjI0ZjMzYjU1YWI5Mg==
|
7
7
|
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
MjhhYWQ2MTY4MWIyNWE0NjM5MjI1YWMwYjViNzg5M2Q0ZjQyYjIxYzQ4YjNm
|
10
|
+
NTllMDJmMDE5OTQzNzRlOGI0YjFjNzMzNTYwMmU2NGE4ZDkxYjYxOGFjZDc2
|
11
|
+
ZWU4MGUyMTJhZjBkNGUwOGFjMmEyMDliY2I4N2E5NGMyMGU0MGM=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
YzA2ZmVjZTdkZTBiOWM0ZDk4NThiNGJkMDA2OGM5MzM4NjRhMWY1YzRhNTFj
|
14
|
+
NzMxM2RkNjU5ZjBkNDBkOGVlYjViZDI5ZTYxMGM4ZWRiYTdjNjUxOTIwYzll
|
15
|
+
MDFkYzliOTgxYTIyNjAzYTRjYjNhY2U1M2RiOTVkOWRjMTBkYmE=
|
@@ -7,9 +7,9 @@ class CabooseRets::CommercialProperty < ActiveRecord::Base
|
|
7
7
|
def office() return CabooseRets::Office.where(:lo_code => self.lo_code).first end
|
8
8
|
def images() return CabooseRets::Media.where(:mls_acct => self.mls_acct).order(:media_order).all end
|
9
9
|
|
10
|
-
def virtual_tour
|
11
|
-
return nil if !CabooseRets::Media.
|
12
|
-
media = CabooseRets::Media.where(:mls_acct => self.mls_acct, :media_type => 'Virtual Tour').first
|
10
|
+
def virtual_tour
|
11
|
+
return nil if !CabooseRets::Media.where(:mls_acct => self.mls_acct.to_s).where(:media_type => 'Virtual Tour').exists?
|
12
|
+
media = CabooseRets::Media.where(:mls_acct => self.mls_acct.to_s, :media_type => 'Virtual Tour').first
|
13
13
|
return media.url
|
14
14
|
end
|
15
15
|
|
@@ -7,9 +7,9 @@ class CabooseRets::LandProperty < ActiveRecord::Base
|
|
7
7
|
def office() return CabooseRets::Office.where(:lo_code => self.lo_code).first end
|
8
8
|
def images() return CabooseRets::Media.where(:mls_acct => self.mls_acct).order(:media_order).all end
|
9
9
|
|
10
|
-
def virtual_tour
|
11
|
-
return nil if !CabooseRets::Media.
|
12
|
-
media = CabooseRets::Media.where(:mls_acct => self.mls_acct, :media_type => 'Virtual Tour').first
|
10
|
+
def virtual_tour
|
11
|
+
return nil if !CabooseRets::Media.where(:mls_acct => self.mls_acct.to_s).where(:media_type => 'Virtual Tour').exists?
|
12
|
+
media = CabooseRets::Media.where(:mls_acct => self.mls_acct.to_s, :media_type => 'Virtual Tour').first
|
13
13
|
return media.url
|
14
14
|
end
|
15
15
|
|
@@ -7,9 +7,9 @@ class CabooseRets::MultiFamilyProperty < ActiveRecord::Base
|
|
7
7
|
def office() return CabooseRets::Office.where(:lo_code => self.lo_code).first end
|
8
8
|
def images() return CabooseRets::Media.where(:mls_acct => self.mls_acct).order(:media_order).all end
|
9
9
|
|
10
|
-
def virtual_tour
|
11
|
-
return nil if !CabooseRets::Media.
|
12
|
-
media = CabooseRets::Media.where(:mls_acct => self.mls_acct, :media_type => 'Virtual Tour').first
|
10
|
+
def virtual_tour
|
11
|
+
return nil if !CabooseRets::Media.where(:mls_acct => self.mls_acct.to_s).where(:media_type => 'Virtual Tour').exists?
|
12
|
+
media = CabooseRets::Media.where(:mls_acct => self.mls_acct.to_s, :media_type => 'Virtual Tour').first
|
13
13
|
return media.url
|
14
14
|
end
|
15
15
|
|
@@ -7,9 +7,9 @@ class CabooseRets::ResidentialProperty < ActiveRecord::Base
|
|
7
7
|
def office() return CabooseRets::Office.where(:lo_code => self.lo_code).first end
|
8
8
|
def images() return CabooseRets::Media.where(:mls_acct => self.mls_acct).order(:media_order).all end
|
9
9
|
|
10
|
-
def virtual_tour
|
11
|
-
return nil if !CabooseRets::Media.
|
12
|
-
media = CabooseRets::Media.where(:mls_acct => self.mls_acct, :media_type => 'Virtual Tour').first
|
10
|
+
def virtual_tour
|
11
|
+
return nil if !CabooseRets::Media.where(:mls_acct => self.mls_acct.to_s).where(:media_type => 'Virtual Tour').exists?
|
12
|
+
media = CabooseRets::Media.where(:mls_acct => self.mls_acct.to_s, :media_type => 'Virtual Tour').first
|
13
13
|
return media.url
|
14
14
|
end
|
15
15
|
|
data/lib/caboose_rets/version.rb
CHANGED