diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2007-10-16 16:36:52 +0000 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2007-10-16 16:36:52 +0000 |
commit | a2172e75f589f038ed10806e9a32be99d4d69f89 (patch) | |
tree | 3a891678b3fbbcea6a7dc285b1a96f973733c64f /actionpack/lib | |
parent | f575757ca47f2bbce9866e2a1b1f23b629352b92 (diff) | |
download | rails-a2172e75f589f038ed10806e9a32be99d4d69f89.tar.gz rails-a2172e75f589f038ed10806e9a32be99d4d69f89.tar.bz2 rails-a2172e75f589f038ed10806e9a32be99d4d69f89.zip |
Dispatcher: fix that to_prepare should only run once in production. Closes #9889.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7944 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/lib')
-rw-r--r-- | actionpack/lib/action_controller/dispatcher.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/actionpack/lib/action_controller/dispatcher.rb b/actionpack/lib/action_controller/dispatcher.rb index 65f763ca01..df63e0c992 100644 --- a/actionpack/lib/action_controller/dispatcher.rb +++ b/actionpack/lib/action_controller/dispatcher.rb @@ -91,7 +91,8 @@ module ActionController cattr_accessor :callbacks self.callbacks = Hash.new { |h, k| h[k] = [] } - attr_accessor_with_default :unprepared, true + cattr_accessor :unprepared + self.unprepared = true before_dispatch :reload_application |