caboose-rets 0.0.45 → 0.0.46
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 +8 -8
- data/app/controllers/caboose_rets/rets_controller.rb +3 -12
- 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
|
+
ZTUzOTZlNmYxMDVkOGEzNTQ2MjI5OWJkYWM1N2VhMTNiOTIzNjFiNQ==
|
|
5
5
|
data.tar.gz: !binary |-
|
|
6
|
-
|
|
6
|
+
YWE5MDFkMGI0ZmRlNTUzOGJiMDc1MTE1Y2IwNTlhOGMyMWQ1YTk2Yw==
|
|
7
7
|
!binary "U0hBNTEy":
|
|
8
8
|
metadata.gz: !binary |-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
ZDYyMjBjOTJkMjgwMjI0ZTA1YjZlYTM5NGI1ZDkwNmQyMWM1MWM4Y2ExY2I1
|
|
10
|
+
NzYwZTU2ZTFkYWEzYzIyMDUzNGRhNjgzMzQ3YWY3NTZiZWFkOTc3NzU0YzA0
|
|
11
|
+
ODM4N2Y1NmE2MmE3Zjc3NjgwYWY3NTFiNDMwZjhhMTc4YzIzZWM=
|
|
12
12
|
data.tar.gz: !binary |-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
ZWRmMTVjNTJjYzhhNzU5OTRlOTI5NGE1ZjM4MTg5YzUwZGRjZTFhMmRhYWFm
|
|
14
|
+
YjBmYzk3ZGRkMWMwNjU1MjI1OGYzYWIwMzQzOTY4OGY0ZmFkMDBiMDU4Nzhk
|
|
15
|
+
ZDUxOWI0YTlkZTM3ZjdkNDNkNWQ4NzI3YjM4MzgzMGNkYzI4YzQ=
|
|
@@ -11,20 +11,11 @@ module CabooseRets
|
|
|
11
11
|
# POST /admin/rets/import
|
|
12
12
|
def admin_import
|
|
13
13
|
return if !user_is_allowed('properties', 'edit')
|
|
14
|
+
|
|
15
|
+
mls_acct = params[:mls_acct].to_i
|
|
16
|
+
ResidentialProperty.delay.import_from_mls(mls_acct)
|
|
14
17
|
|
|
15
18
|
resp = Caboose::StdClass.new
|
|
16
|
-
|
|
17
|
-
mls_acct = params[:mls_acct].to_i
|
|
18
|
-
|
|
19
|
-
case params[:type]
|
|
20
|
-
when 'RES' then ResidentialProperty.delay.import_from_mls(mls_acct)
|
|
21
|
-
when 'COM' then CommercialProperty.delay.import_from_mls(mls_acct)
|
|
22
|
-
when 'LND' then LandProperty.delay.import_from_mls(mls_acct)
|
|
23
|
-
when 'MUL' then MultiFamilyProperty.delay.import_from_mls(mls_acct)
|
|
24
|
-
else
|
|
25
|
-
resp.error = "Invalid property type."
|
|
26
|
-
end
|
|
27
|
-
|
|
28
19
|
resp.success = "The property is being imported from MLS. This may take a few minutes depending on how many images it has."
|
|
29
20
|
render :json => resp
|
|
30
21
|
end
|
data/lib/caboose_rets/version.rb
CHANGED