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.
- checksums.yaml +4 -4
- data/lib/where-or.rb +8 -0
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e333740e9bf4ac3a0597b3e25ba3448e8f936e9f
|
4
|
+
data.tar.gz: 6613baf98145a61ba1ead04016053a5db45e5442
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6bb55a68cebd56f03652b40d38e4f1b7208f1e9709d6eb6e1ffebafb058bb8286d3b484dc2080ad3d7e618fdab787dd4329e6ef867f04601c50ccd0f1cdb8c5c
|
7
|
+
data.tar.gz: 0d90b7eba64035fe3550dd25bfb3e11a86e8b630581eb1f768c9740ef219957852a4c4078af149c1676a208668c6323055ee81187ba63966bde156734477f289
|
data/lib/where-or.rb
CHANGED
@@ -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.
|
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-
|
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.
|
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
|