Browse Source

Let plugin override mailer views (#11776).

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10304 e93f8b46-1217-0410-a6f0-8f06a7374b81
tags/2.1.0
Jean-Philippe Lang 11 years ago
parent
commit
ef8c393290
1 changed files with 1 additions and 0 deletions
  1. 1
    0
      lib/redmine/plugin.rb

+ 1
- 0
lib/redmine/plugin.rb View File

@@ -82,6 +82,7 @@ module Redmine #:nodoc:
view_path = File.join(p.directory, 'app', 'views')
if File.directory?(view_path)
ActionController::Base.prepend_view_path(view_path)
ActionMailer::Base.prepend_view_path(view_path)
end

# Adds the app/{controllers,helpers,models} directories of the plugin to the autoload path

Loading…
Cancel
Save