public
Fork of sudara/alonetone
Description: alonetone - a damn fine musician's home. Upload mp3s, create playlists, track listens, get your widget on. (looking for dev help!)
Homepage: http://alonetone.com
Clone URL: git://github.com/taansen/alonetone.git
further snafu prevention, though not DRY
sudara (author)
Tue Mar 11 10:05:08 -0700 2008
commit  8bf45d9a41d03996f5ed79efcec1f8494b5fcf52
tree    c290a2d5bafc315c0370e20950686871dcc9e56b
parent  d523c6cba47beb818ead3193691ffd515e2e35cb
...
1
2
3
4
 
5
6
7
...
1
2
3
 
4
5
6
7
0
@@ -1,7 +1,7 @@
0
 class ApplicationController < ActionController::Base
0
   helper :all # include all helpers, all the time
0
 
0
- protect_from_forgery :secret => APP_SECRET
0
+ protect_from_forgery :secret => YAML.load_file(File.join(RAILS_ROOT,'config','alonetone.yml'))['alonetone']['secret']
0
   
0
   include AuthenticatedSystem
0
   include ExceptionLoggable
...
27
28
29
 
30
31
32
...
27
28
29
30
31
32
33
0
@@ -27,6 +27,7 @@ config.after_initialize do
0
 
0
       # include any custom auth modules you need
0
       include AuthenticatedSystem
0
+ protect_from_forgery :secret => YAML.load_file(File.join(RAILS_ROOT,'config','alonetone.yml'))['alonetone']['secret']
0
 
0
       before_filter :login_required
0
       
...
4
5
6
7
8
9
10
11
12
...
4
5
6
 
 
 
7
8
9
0
@@ -4,9 +4,6 @@ SVN_COMMAND = 'svn info'
0
 BRIGHTNESS = ''
0
 LASTCHANGED = Date.today
0
 
0
-# Set the protect_from_forgery secret key in alonetone.yml
0
-APP_SECRET = YAML.load_file(File.join(RAILS_ROOT,'config','alonetone.yml'))['alonetone']['secret']
0
-
0
 # MAKE FACEBOOKER HAPPY
0
 ActionController::Base.asset_host = ''
0
 

Comments

    No one has commented yet.