caboose-rets 0.1.32 → 0.1.33

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: cd148d5ba35e51a143d91afb1e96b031d53d2be1
4
- data.tar.gz: d5f60f39bf9e3787f56033ee9ac5d2e5fd86b06b
3
+ metadata.gz: 1481112941de17add0c10a39a2e6bd90648ef482
4
+ data.tar.gz: 93162472ae3049a2eb89f57d81250115d3d29e58
5
5
  SHA512:
6
- metadata.gz: 6004c29dc495c9e7acf9c52687bba04049d350a13d6959d80b83f79b2edc53ea21ecef4fc5f27f4f3816c1868241cd17ceefb8fdd9a002bc68e706953b708b01
7
- data.tar.gz: 52f537953563be39060f4c26978ea7c5ab1fd4c6f3b6c470a32a24c09fc6525cbc11f5576cab6e5fe3844771601b92001015310ee1c0a1262ccdad828b2af1c1
6
+ metadata.gz: 9bb8400c3f1abc160dbc177eae1bd273b638a5e11cbef4062ad8f434e6fe2efad1fc6ec65edeaaf97331fc79f6ffe06d8e8782370ac4920c9e4f595909846e1c
7
+ data.tar.gz: 048dd31126941dc05610a963d75ec9a5e94db495496393f75e116e4de7b81b676636c81cb7129e2f88eb884784f1935a3aa4b51ef4b944a3e7a96b2941054b83
@@ -19,7 +19,7 @@ module CabooseRets
19
19
  params[:street_name_like][0] = '' if params[:street_name_like][0].to_i == 0
20
20
  end
21
21
  end
22
-
22
+ where = @site && @site.id == 558 ? "(style = 'Condo')" : "()"
23
23
  @pager = Caboose::PageBarGenerator.new(params, {
24
24
  'area' => '',
25
25
  'area_like' => '',
@@ -68,7 +68,8 @@ module CabooseRets
68
68
  },
69
69
  'skip' => ['status'],
70
70
  'base_url' => '/properties',
71
- 'items_per_page' => 10
71
+ 'items_per_page' => 10,
72
+ 'additional_where' => [ (where) ]
72
73
  })
73
74
 
74
75
  @properties = @pager.items
@@ -1,3 +1,3 @@
1
1
  module CabooseRets
2
- VERSION = '0.1.32'
2
+ VERSION = '0.1.33'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: caboose-rets
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.32
4
+ version: 0.1.33
5
5
  platform: ruby
6
6
  authors:
7
7
  - William Barry
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-08-29 00:00:00.000000000 Z
11
+ date: 2018-09-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: caboose-cms