Sha256: 2609ed1fef39a47b7b8a90441de4b757fcf679ad528704c365ec0bfd858bed8d
Contents?: true
Size: 791 Bytes
Versions: 1
Compression:
Stored size: 791 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) view_paths = Dir["#{template_path}/#{@template}.*"].collect do |path| File.dirname(path) end 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
desert-0.2.1 | lib/desert/plugin_templates/1.99.0/action_mailer.rb |