#906: rename secret_key

This commit is contained in:
Vokhmin Alexey V 2013-03-05 00:08:25 +04:00
parent 7f21d40255
commit 13795a9eab
2 changed files with 2 additions and 2 deletions

View File

@ -5,7 +5,7 @@ class KeyPair < ActiveRecord::Base
attr_accessor :fingerprint attr_accessor :fingerprint
attr_accessible :public, :secret, :repository_id attr_accessible :public, :secret, :repository_id
attr_encrypted :secret, :key => APP_CONFIG['keys']['secret_key'] attr_encrypted :secret, :key => APP_CONFIG['keys']['key_pair_secret_key']
validates :repository_id, :user_id, :presence => true validates :repository_id, :user_id, :presence => true
validates :secret, :public, :presence => true, :length => { :maximum => 10000 }, :on => :create validates :secret, :public, :presence => true, :length => { :maximum => 10000 }, :on => :create

View File

@ -7,7 +7,7 @@ common: &common
abf_worker: abf_worker:
publish_workers_count: 2 publish_workers_count: 2
keys: keys:
secret_key: 'secret_key' key_pair_secret_key: 'key_pair_secret_key'
airbrake_api_key: 'airbrake_api_key' airbrake_api_key: 'airbrake_api_key'
devise_pepper: 'devise_pepper' devise_pepper: 'devise_pepper'
secret_token: 'secret_token' secret_token: 'secret_token'