diff options
author | José Valim <jose.valim@gmail.com> | 2012-03-15 08:48:38 +0100 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2012-03-15 08:48:38 +0100 |
commit | fbc9d0f44f090a9873834f4966760c3e80682559 (patch) | |
tree | 70a3a93f8af3653b0ed8557b9c385fc3f105bf18 /railties/lib/rails | |
parent | 5b94e73d1a604c59ecd1ebb9441d60ea864fa1b5 (diff) | |
download | rails-fbc9d0f44f090a9873834f4966760c3e80682559.tar.gz rails-fbc9d0f44f090a9873834f4966760c3e80682559.tar.bz2 rails-fbc9d0f44f090a9873834f4966760c3e80682559.zip |
Simplify helpers handling. Ensure Metal can run AC hooks.
Diffstat (limited to 'railties/lib/rails')
-rw-r--r-- | railties/lib/rails/engine.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/lib/rails/engine.rb b/railties/lib/rails/engine.rb index 9629ac55c2..131d6e5711 100644 --- a/railties/lib/rails/engine.rb +++ b/railties/lib/rails/engine.rb @@ -561,7 +561,7 @@ module Rails initializer :add_view_paths do views = paths["app/views"].existent unless views.empty? - ActiveSupport.on_load(:action_controller){ prepend_view_path(views) } + ActiveSupport.on_load(:action_controller){ prepend_view_path(views) if respond_to?(:prepend_view_path) } ActiveSupport.on_load(:action_mailer){ prepend_view_path(views) } end end |