diff --git a/lib/tasks/initializers.rake b/lib/tasks/initializers.rake index 3d4a40205..fa20f09b5 100644 --- a/lib/tasks/initializers.rake +++ b/lib/tasks/initializers.rake @@ -1,7 +1,7 @@ desc 'Generates a configuration file for cookie store sessions.' file 'config/initializers/session_store.rb' do - path = File.join(RAILS_ROOT, 'config', 'initializers', 'session_store.rb') + path = File.join(Rails.root, 'config', 'initializers', 'session_store.rb') secret = ActiveSupport::SecureRandom.hex(40) File.open(path, 'w') do |f| f.write <<"EOF"