Sha256: f757734ec08cb433180f2028828db235a23fb7ad1e48837fe7931c16f3e434eb
Contents?: true
Size: 803 Bytes
Versions: 5
Compression:
Stored size: 803 Bytes
Contents
module ActionMailer #:nodoc class Base #:nodoc: private def template_path_with_plugin_routing template_paths = [template_path_without_plugin_routing] Desert::Manager.plugins.reverse.each do |plugin| template_paths << "#{plugin.templates_path}/#{mailer_name}" end "{#{template_paths * ','}}" end alias_method_chain :template_path, :plugin_routing def initialize_template_class(assigns) self.view_paths = Dir[template_path].collect do |path| File.dirname(path) end if self.view_paths.empty? returning(template = ActionView::Base.new(view_paths, assigns, self)) do template.extend ApplicationHelper template.extend self.class.master_helper_module end end end end
Version data entries
5 entries across 5 versions & 3 rubygems