annotate .svn/pristine/4f/4fb5582b9423d32809fbaa513dda130c44491b13.svn-base @ 1524:82fac3dcf466 redmine-2.5-integration

Fix failure to interpret Javascript when autocompleting members for project
author Chris Cannam <chris.cannam@soundsoftware.ac.uk>
date Thu, 11 Sep 2014 10:24:38 +0100
parents cbb26bc654de
children
rev   line source
Chris@909 1 desc 'Generates a configuration file for cookie store sessions.'
Chris@909 2
Chris@909 3 file 'config/initializers/session_store.rb' do
Chris@909 4 path = File.join(Rails.root, 'config', 'initializers', 'session_store.rb')
Chris@909 5 secret = ActiveSupport::SecureRandom.hex(40)
Chris@909 6 File.open(path, 'w') do |f|
Chris@909 7 f.write <<"EOF"
Chris@909 8 # This file was generated by 'rake config/initializers/session_store.rb',
Chris@909 9 # and should not be made visible to public.
Chris@909 10 # If you have a load-balancing Redmine cluster, you will need to use the
Chris@909 11 # same version of this file on each machine. And be sure to restart your
Chris@909 12 # server when you modify this file.
Chris@909 13
Chris@909 14 # Your secret key for verifying cookie session data integrity. If you
Chris@909 15 # change this key, all old sessions will become invalid! Make sure the
Chris@909 16 # secret is at least 30 characters and all random, no regular words or
Chris@909 17 # you'll be exposed to dictionary attacks.
Chris@909 18 ActionController::Base.session = {
Chris@909 19 :key => '_redmine_session',
Chris@909 20 #
Chris@909 21 # Uncomment and edit the :session_path below if are hosting your Redmine
Chris@909 22 # at a suburi and don't want the top level path to access the cookies
Chris@909 23 #
Chris@909 24 # See: http://www.redmine.org/issues/3968
Chris@909 25 #
Chris@909 26 # :session_path => '/url_path_to/your/redmine/',
Chris@909 27 :secret => '#{secret}'
Chris@909 28 }
Chris@909 29 EOF
Chris@909 30 end
Chris@909 31 end
Chris@909 32
Chris@909 33 desc 'Generates a configuration file for cookie store sessions.'
Chris@909 34 task :generate_session_store => ['config/initializers/session_store.rb']