torque-postgresql 0.2.7 → 0.2.8
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 77fe57dba60b709f1630900c99cf9da7d79f6215
|
4
|
+
data.tar.gz: 08f084e211d6c5ad863dd05a18206be6cf20d1f4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0de3b0d995bac98ac02b2a48641c087820b37e8d28508b6645e64f0d9cba418b698b1cd8279fcd92c23d51ca0d5f7732c040ed50c65d577061dcfae9fa37387b
|
7
|
+
data.tar.gz: a8d2f34d7a7b9245db779be70c73de28bd17de6e7cff36ecda2e5c0595df8fe0b03d958e5ddf16473ce46db6aa1209851ed638f9e7ac2bdfb4b5fbe409742cf0
|
@@ -123,8 +123,8 @@ module Torque
|
|
123
123
|
# attribute value
|
124
124
|
def all_values
|
125
125
|
values_methods.each do |val, list|
|
126
|
-
klass.
|
127
|
-
|
126
|
+
klass.module_eval <<-STR, __FILE__, __LINE__ + 1
|
127
|
+
scope :#{list[0]}, -> do # scope :disabled, -> do
|
128
128
|
where(#{attribute}: '#{val}') # where(status: 'disabled')
|
129
129
|
end # end
|
130
130
|
STR
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: torque-postgresql
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Carlos Silva
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-11-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|