Ok, After a bit of digging into REE and Redmine package issue I am
following up on this.
The lines that have been added there:
loads cookie based session session and secret keys
# this is needed here because initializers are loaded after plugins,
# and some plugins initialize ActionController which requires a secret
to be set.
# crash if file not found
filename = ENV['RAILS_ETC'] ? File.join(ENV['RAILS_ETC'],
'session.yml') : File.join(File.dirname(__FILE__), '..',
'session.yml')
sessionconfig = YAML::load_file(filename)
require 'action_controller'
relativeUrlRoot = ENV['RAILS_RELATIVE_URL_ROOT']
ActionController::Base.session = {
:key => sessionconfig[Rails.env]['key'],
:secret => sessionconfig[Rails.env]['secret'],
:path => (relativeUrlRoot.blank?) ? '/' : relativeUrlRoot
}
should be in the initializers/50-debian.rb
after the .run! method is invoked.
And this is more elegant way of modifying things for Debian I think :)
Radek
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]