pg_adaptor 0.0.8 → 0.0.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/pg_adaptor.rb +4 -4
- data/lib/pg_adaptor/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fba0fdb0791b71a8d1636bae4ba38dee73159589
|
4
|
+
data.tar.gz: 48145ff3b8419051bb50c366335ea1aebaf20524
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c8f901b6ed4643f6129517573598e9fb8f4cbcafd79574c681f49cc229e59fc023ae31986200d2b3a78f3db02a6063edb692ded99a85928a26768409db31c761
|
7
|
+
data.tar.gz: 5b0f3555787c30786ac45ac93d74bd95c12990a872e58020057d654e27875bfc231ee49d0c4154b0c78ed851243940b2f3dd4d65a46045c45a713b247c75e140
|
data/lib/pg_adaptor.rb
CHANGED
@@ -26,16 +26,16 @@ class PGAdaptor
|
|
26
26
|
@table.where(query).update process(model)
|
27
27
|
end
|
28
28
|
|
29
|
-
def fetch selector = {},
|
30
|
-
build @table.where(selector).first
|
29
|
+
def fetch selector = {}, *args
|
30
|
+
build @table.where(selector, *args).first
|
31
31
|
end
|
32
32
|
|
33
33
|
def remove selector = {}
|
34
34
|
@table.where(selector).delete
|
35
35
|
end
|
36
36
|
|
37
|
-
def find selector = {}
|
38
|
-
@table.where(selector).map { |row| build row }
|
37
|
+
def find selector = {}, *args
|
38
|
+
@table.where(selector, *args).map { |row| build row }
|
39
39
|
end
|
40
40
|
|
41
41
|
private
|
data/lib/pg_adaptor/version.rb
CHANGED