Module: CryptKeeperWithRansack::CryptKeeper

Extended by:
ActiveSupport::Concern
Defined in:
lib/crypt_keeper_with_ransack.rb

Instance Method Summary collapse

Instance Method Details

#crypt_keeper_with_ransack(*args) ⇒ Object



13
14
15
16
17
18
19
# File 'lib/crypt_keeper_with_ransack.rb', line 13

def crypt_keeper_with_ransack(*args)
  crypt_keeper_without_ransack(*args)

  crypt_keeper_fields.each do |field|
    add_crypt_ransacker field, key: crypt_keeper_options[:key]
  end
end