aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_view/base.rb
diff options
context:
space:
mode:
authorNathan Weizenbaum <nex342@gmail.com>2010-04-27 15:23:44 -0700
committerJeremy Kemper <jeremy@bitsweat.net>2010-04-27 21:37:40 -0700
commitef5dadaf93f9cb5cffd5913cdee3b9278d9c5c65 (patch)
tree5127ea314d4d1b4ec24548fb82c71edf37653264 /actionpack/lib/action_view/base.rb
parent7100c9d6ca1aedea7dc1cb8a6cea08ed57432f19 (diff)
downloadrails-ef5dadaf93f9cb5cffd5913cdee3b9278d9c5c65.tar.gz
rails-ef5dadaf93f9cb5cffd5913cdee3b9278d9c5c65.tar.bz2
rails-ef5dadaf93f9cb5cffd5913cdee3b9278d9c5c65.zip
Only run load hooks once a file has been fully loaded.
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
Diffstat (limited to 'actionpack/lib/action_view/base.rb')
-rw-r--r--actionpack/lib/action_view/base.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/actionpack/lib/action_view/base.rb b/actionpack/lib/action_view/base.rb
index be9791505e..4ac2ee52d6 100644
--- a/actionpack/lib/action_view/base.rb
+++ b/actionpack/lib/action_view/base.rb
@@ -176,8 +176,6 @@ module ActionView #:nodoc:
delegate :logger, :to => 'ActionController::Base', :allow_nil => true
end
- ActiveSupport.run_load_hooks(:action_view, self)
-
attr_accessor :base_path, :assigns, :template_extension, :lookup_context
attr_internal :captures, :request, :controller, :template, :config
@@ -229,5 +227,7 @@ module ActionView #:nodoc:
response.body_parts << part
nil
end
+
+ ActiveSupport.run_load_hooks(:action_view, self)
end
end