Permalink
Browse files

ActionView::TemplateFinder has been replaced (without much discussion…

… as to why) in edge Rails (see http://github.com/rails/rails/commit/bec4b69a3b65c3696edad3c880207e8c476b0937#diff-14), so we need to reflect that. Seems like we don't need to 'process' the view paths anymore either.
  • Loading branch information...
1 parent ec2a1c5 commit 499ce3b0480d8fa9375203f5efcadb8cf6ea9efe @lazyatom committed Jun 30, 2008
Showing with 1 addition and 2 deletions.
  1. +0 −1 lib/engines/plugin.rb
  2. +1 −1 lib/engines/rails_extensions/action_mailer.rb
View
@@ -89,7 +89,6 @@ def add_plugin_view_paths
view_path = File.join(directory, 'app', 'views')
if File.exist?(view_path)
ActionController::Base.view_paths.insert(1, view_path) # push it just underneath the app
- ActionView::TemplateFinder.process_view_paths(view_path)
end
end
@@ -70,7 +70,7 @@ def initialize_template_class_with_engine_additions(assigns)
#
# ActionView::Base.new(ActionController::Base.view_paths.dup, assigns, self)
renderer = initialize_template_class_without_engine_additions(assigns)
- renderer.finder.view_paths.unshift(*ActionController::Base.view_paths.dup)
+ renderer.view_paths.unshift(*ActionController::Base.view_paths.dup)
renderer
end
end

0 comments on commit 499ce3b

Please sign in to comment.