lib/symmetric_encryption/railtie.rb in symmetric-encryption-1.1.1 vs lib/symmetric_encryption/railtie.rb in symmetric-encryption-2.0.0
- old
+ new
@@ -8,11 +8,11 @@
# module MyApplication
# class Application < Rails::Application
# config.symmetric_encryption.cipher = SymmetricEncryption::Cipher.new(
# :key => '1234567890ABCDEF1234567890ABCDEF',
# :iv => '1234567890ABCDEF',
- # :cipher => 'aes-128-cbc'
+ # :cipher_name => 'aes-128-cbc'
# )
# end
# end
config.symmetric_encryption = ::SymmetricEncryption
@@ -24,12 +24,12 @@
# directory and configure Symmetry appropriately.
#
# @example symmetric-encryption.yml
#
# development:
- # cipher: aes-256-cbc
- # symmetric_key: 1234567890ABCDEF1234567890ABCDEF
- # symmetric_iv: 1234567890ABCDEF
+ # cipher_name: aes-256-cbc
+ # key: 1234567890ABCDEF1234567890ABCDEF
+ # iv: 1234567890ABCDEF
#
# Loaded before Active Record initializes since database.yml can have encrypted
# passwords in it
config.before_configuration do
config_file = Rails.root.join("config", "symmetric-encryption.yml")