X-Git-Url: https://projects.mako.cc/source/selectricity/blobdiff_plain/d6d44b7c8dc1d8ea3e425116caadca43c9412fed..131cab23209cb1dfa81930240b8cf722d2302131:/config/environment.rb diff --git a/config/environment.rb b/config/environment.rb index 571638d..49b0c48 100644 --- a/config/environment.rb +++ b/config/environment.rb @@ -63,7 +63,7 @@ MAIL_CONFIG = { :from => 'Selectricity '} require 'uniq_token' require 'randarray' -require 'gruff' +require 'gruff-0.2.8/lib/gruff' require 'sparklines' require 'rubyvote' @@ -87,6 +87,10 @@ class String end end +#Change the session store key, so that it will not conflict with other webapps +ActionController::Base.session_options[:session_key] = 'selectricity_session_id' +CGI::Session.expire_after 1.year + # action mailer configuration ActionMailer::Base.delivery_method = :sendmail ActionMailer::Base.default_charset = "utf-8"