Can't override mailer views inside redmine plugin.
|Assignee:||Jean-Philippe Lang||% Done:|
You can't override mailer views as you can other views from within a redmine plugin.
I suspect the cause of the problem is inside /lib/redmine/plugin.rb line 83:-
if File.directory?(view_path) ActionController::Base.prepend_view_path(view_path) end
if File.directory?(view_path) ActionController::Base.prepend_view_path(view_path) ActionMailer::Base.prepend_view_path(view_path) end
Because otherwise, as ActionMailer and ActionController inherit from the same class (AbstractController), any extra view path given to the ActionController won't be available to the ActionMailer.
Redmine version: 2.0.3.stable.10173 but it seems to have not been fixed yet in trunk too.