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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 70530402b5010ed3ff8b58585a68802e3eb55c36
4
- data.tar.gz: cf3f4314fca5474ecf53e1c99fc7372269524167
3
+ metadata.gz: 175e69a18048d219d4d639a2ba7bae5e7b209d84
4
+ data.tar.gz: a76c3b2147dd47b076b2fbe0eb851425081bab1b
5
5
  SHA512:
6
- metadata.gz: b4c791165388fdb48f322e4b8199195912e9b420c2cb00d096ed22996c1f7384d8d78a6555cb9ee20887f3634722317fb0b42eb6d9fe1542e2edf7e3a1558f83
7
- data.tar.gz: b96e1af60127d4c2cac12bf45cb79f195074427e5fd63d04601f09edcdbe44fc59cf36968647af563ed0137843e95dd05a065b2e8c6cda63323f815a3f573ebe
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
- crypt_keeper_fields.each do |field|
17
- add_crypt_ransacker field, key: crypt_keeper_options[:key]
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
@@ -1,3 +1,3 @@
1
1
  module CryptKeeperWithRansack
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
@@ -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', ransacker: true
28
+ crypt_keeper :name, encryptor: :postgres_pgp, key: 'super_good_password', ransack: true
29
29
  end
30
30
 
31
31
  # migrations
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: crypt_keeper_with_ransack
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - maimai77