crypt_keeper_with_ransack 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/crypt_keeper_with_ransack.rb +4 -2
- data/lib/crypt_keeper_with_ransack/version.rb +1 -1
- data/spec/fake_app.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: 175e69a18048d219d4d639a2ba7bae5e7b209d84
|
4
|
+
data.tar.gz: a76c3b2147dd47b076b2fbe0eb851425081bab1b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 437a4de601d81e2688eaffce8beea67008535b127acef8e23b075b780e8c47b6efd144f5e3a8ded1183b664314cd114a63a85938fdfd1e9d74878873bc6cde09
|
7
|
+
data.tar.gz: fa95d3eddaa5eb30e99603b3957e15606ed59ef4157cef2f4d9c50dc206d9a3f96f1b9e8bff74451461520a2020bf776b618d0530536efab31c4d8a1d77e1099
|
@@ -13,8 +13,10 @@ module CryptKeeperWithRansack
|
|
13
13
|
def crypt_keeper_with_ransack(*args)
|
14
14
|
crypt_keeper_without_ransack(*args)
|
15
15
|
|
16
|
-
|
17
|
-
|
16
|
+
if crypt_keeper_options.include?(:ransack)
|
17
|
+
crypt_keeper_fields.each do |field|
|
18
|
+
add_crypt_ransacker field, key: crypt_keeper_options[:key]
|
19
|
+
end
|
18
20
|
end
|
19
21
|
end
|
20
22
|
end
|
data/spec/fake_app.rb
CHANGED
@@ -25,7 +25,7 @@ CryptKeeperWithRansackTestApp::Application.initialize!
|
|
25
25
|
|
26
26
|
# models
|
27
27
|
class User < ActiveRecord::Base
|
28
|
-
crypt_keeper :name, encryptor: :postgres_pgp, key: 'super_good_password',
|
28
|
+
crypt_keeper :name, encryptor: :postgres_pgp, key: 'super_good_password', ransack: true
|
29
29
|
end
|
30
30
|
|
31
31
|
# migrations
|