This project is archived and is in readonly mode.

#2737 ✓resolved
Luke Melia

Don't load ActiveRecord::SessionStore during intialization if it's not used by the app

Reported by Luke Melia | May 29th, 2009 @ 03:01 PM

Our app uses CookieStore but I noticed that ActiveRecord::SessionStore was still being loaded (with the DB reflection overhead associated with loading an AR class) during initialization. This patch just changes a conditional from using a constant to string to avoid autoloading the class.

Comments and changes to this ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>

People watching this ticket

Referenced by

Pages