Skip to content

Commit

Permalink
Force recompilation of ActionDispatch::Reloader's cleanup callbacks i…
Browse files Browse the repository at this point in the history
…n Rails 3.1
  • Loading branch information
nixme committed Aug 29, 2011
1 parent c44c7fe commit 4b118b9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/active_reload.rb
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ def self.replace_proc(&new)
@replaced = proc_collection.pop
if rails31?
proc_source.to_prepare(&new)
proc_source.__define_runner(:cleanup)
else
proc_source.before(&new)
end
Expand Down

0 comments on commit 4b118b9

Please sign in to comment.