where-or 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/where-or.rb +8 -0
  3. metadata +3 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7a8bfccbdf3bdfea44c956cf6d044c2a5ad2da00
4
- data.tar.gz: 0645fe9531ecea43d7a1538ea4d42a95ca5864a8
3
+ metadata.gz: e333740e9bf4ac3a0597b3e25ba3448e8f936e9f
4
+ data.tar.gz: 6613baf98145a61ba1ead04016053a5db45e5442
5
5
  SHA512:
6
- metadata.gz: c1b550c7fd8219a42159273af1c65426da3bdde824faf1e56d875e79f6f0e13add2ae4f013c3f994aa4ceaa65a76efdd3e13f98b03b7682b1e965ab031caa77d
7
- data.tar.gz: 172daeacff899edaabf660b6c8cd64322581bc21fc543b176e7cb5adf88f091819ee5c0f6d6a377b48f141b97f7e06bcb4b493aaf5ab25f42dd0322310d522ab
6
+ metadata.gz: 6bb55a68cebd56f03652b40d38e4f1b7208f1e9709d6eb6e1ffebafb058bb8286d3b484dc2080ad3d7e618fdab787dd4329e6ef867f04601c50ccd0f1cdb8c5c
7
+ data.tar.gz: 0d90b7eba64035fe3550dd25bfb3e11a86e8b630581eb1f768c9740ef219957852a4c4078af149c1676a208668c6323055ee81187ba63966bde156734477f289
@@ -51,6 +51,14 @@ ActiveSupport.on_load(:active_record) do
51
51
  self.where_clause = ActiveRecord::Relation::WhereClause.new(values || [], where_clause.binds)
52
52
  end
53
53
 
54
+ def having_values
55
+ having_clause.predicates
56
+ end
57
+
58
+ def having_values=(values)
59
+ self.having_clause = ActiveRecord::Relation::WhereClause.new(values || [], having_clause.binds)
60
+ end
61
+
54
62
  def bind_values
55
63
  where_clause.binds
56
64
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: where-or
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Benjamin Fleischer
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2016-06-24 00:00:00.000000000 Z
12
+ date: 2016-10-21 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
@@ -62,7 +62,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
62
62
  version: '0'
63
63
  requirements: []
64
64
  rubyforge_project:
65
- rubygems_version: 2.6.4
65
+ rubygems_version: 2.6.7
66
66
  signing_key:
67
67
  specification_version: 4
68
68
  summary: Where or function backport from Rails 5 for Rails 4.2