Author: assaf
Date: Tue Nov 18 15:32:36 2008
New Revision: 718773
URL: http://svn.apache.org/viewvc?rev=718773&view=rev
Log:
Fixed: reading of secret.key uses Rails.root so we can load the configuration
from any current directory.
Modified:
ode/sandbox/singleshot/config/environment.rb
Modified: ode/sandbox/singleshot/config/environment.rb
URL:
http://svn.apache.org/viewvc/ode/sandbox/singleshot/config/environment.rb?rev=718773&r1=718772&r2=718773&view=diff
==============================================================================
--- ode/sandbox/singleshot/config/environment.rb (original)
+++ ode/sandbox/singleshot/config/environment.rb Tue Nov 18 15:32:36 2008
@@ -57,7 +57,7 @@
# no regular words or you'll be exposed to dictionary attacks.
config.action_controller.session = {
:session_key => '_singleshot_session',
- :secret => File.read('secret.key')
+ :secret => File.read("#{Rails.root}/secret.key")
}
# Use the database for sessions instead of the cookie-based default,