diff --git a/app/models/stacks_media_token.rb b/app/models/stacks_media_token.rb index 73873a23..29f893e7 100644 --- a/app/models/stacks_media_token.rb +++ b/app/models/stacks_media_token.rb @@ -106,7 +106,7 @@ def self.create_from_encrypted_string(encrypted_string) def self.encryptor salt = 'media' - key = ActiveSupport::KeyGenerator.new(Rails.application.secrets.secret_key_base).generate_key(salt, 32) + key = ActiveSupport::KeyGenerator.new(Rails.application.secret_key_base).generate_key(salt, 32) ActiveSupport::MessageEncryptor.new(key) end private_class_method :encryptor diff --git a/app/models/user.rb b/app/models/user.rb index 4830afb7..a14caf59 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -70,7 +70,7 @@ def token def self.encryptor salt = 'user' - key = ActiveSupport::KeyGenerator.new(Rails.application.secrets.secret_key_base).generate_key(salt, 32) + key = ActiveSupport::KeyGenerator.new(Rails.application.secret_key_base).generate_key(salt, 32) ActiveSupport::MessageEncryptor.new(key) end