After doing the configuration for heroku
I tried to run rails g symmetric_encryption:new_keys production.
But the following exception was raised
lib/symmetric_encryption/cipher.rb:147:in `generate_random_keys': SymmetricEncryption::Cipher Invalid options {:version=>1, :always_add_header=>true} (ArgumentError)
from /home/jonatasrancan/.rvm/gems/ruby-2.2.3/bundler/gems/symmetric-encryption-c389dd997be3/lib/symmetric_encryption/symmetric_encryption.rb:274:in `generate_symmetric_key_files'
from /home/jonatasrancan/.rvm/gems/ruby-2.2.3/bundler/gems/symmetric-encryption-c389dd997be3/lib/rails/generators/symmetric_encryption/new_keys/new_keys_generator.rb:9:in `create_config_file'
from /home/jonatasrancan/.rvm/gems/ruby-2.2.3/gems/thor-0.19.4/lib/thor/command.rb:27:in `run'
from /home/jonatasrancan/.rvm/gems/ruby-2.2.3/gems/thor-0.19.4/lib/thor/invocation.rb:126:in `invoke_command'
from /home/jonatasrancan/.rvm/gems/ruby-2.2.3/gems/thor-0.19.4/lib/thor/invocation.rb:133:in `block in invoke_all'
from /home/jonatasrancan/.rvm/gems/ruby-2.2.3/gems/thor-0.19.4/lib/thor/invocation.rb:133:in `each'
from /home/jonatasrancan/.rvm/gems/ruby-2.2.3/gems/thor-0.19.4/lib/thor/invocation.rb:133:in `map'
from /home/jonatasrancan/.rvm/gems/ruby-2.2.3/gems/thor-0.19.4/lib/thor/invocation.rb:133:in `invoke_all'
from /home/jonatasrancan/.rvm/gems/ruby-2.2.3/gems/thor-0.19.4/lib/thor/group.rb:232:in `dispatch'
from /home/jonatasrancan/.rvm/gems/ruby-2.2.3/gems/thor-0.19.4/lib/thor/base.rb:444:in `start'
from /home/jonatasrancan/.rvm/gems/ruby-2.2.3/gems/railties-4.2.6/lib/rails/generators.rb:157:in `invoke'
from /home/jonatasrancan/.rvm/gems/ruby-2.2.3/gems/railties-4.2.6/lib/rails/commands/generate.rb:13:in `<top (required)>'
from /home/jonatasrancan/.rvm/gems/ruby-2.2.3/gems/activesupport-4.2.6/lib/active_support/dependencies.rb:274:in `require'
from /home/jonatasrancan/.rvm/gems/ruby-2.2.3/gems/activesupport-4.2.6/lib/active_support/dependencies.rb:274:in `block in require'
from /home/jonatasrancan/.rvm/gems/ruby-2.2.3/gems/activesupport-4.2.6/lib/active_support/dependencies.rb:240:in `load_dependency'
from /home/jonatasrancan/.rvm/gems/ruby-2.2.3/gems/activesupport-4.2.6/lib/active_support/dependencies.rb:274:in `require'
from /home/jonatasrancan/.rvm/gems/ruby-2.2.3/gems/railties-4.2.6/lib/rails/commands/commands_tasks.rb:123:in `require_command!'
from /home/jonatasrancan/.rvm/gems/ruby-2.2.3/gems/railties-4.2.6/lib/rails/commands/commands_tasks.rb:130:in `generate_or_destroy'
from /home/jonatasrancan/.rvm/gems/ruby-2.2.3/gems/railties-4.2.6/lib/rails/commands/commands_tasks.rb:50:in `generate'
from /home/jonatasrancan/.rvm/gems/ruby-2.2.3/gems/railties-4.2.6/lib/rails/commands/commands_tasks.rb:39:in `run_command!'
from /home/jonatasrancan/.rvm/gems/ruby-2.2.3/gems/railties-4.2.6/lib/rails/commands.rb:17:in `<top (required)>'
from bin/rails:4:in `require'
from bin/rails:4:in `<main>'
I did a small search, and found out that some config keys are been passed to Chiper.generate_random_keys, and not been used.
After doing the configuration for heroku I tried to run
rails g symmetric_encryption:new_keys production
.But the following exception was raised
I did a small search, and found out that some config keys are been passed to Chiper.generate_random_keys, and not been used.