Sha256: 85381c2b1fcfe5b3ab02d4e1181f67fac9184ae6598dd5667296cd8f4b95fc5e
Contents?: true
Size: 426 Bytes
Versions: 3
Compression:
Stored size: 426 Bytes
Contents
# encoding: utf-8 module ThemesForRails module ActionMailer extend ActiveSupport::Concern included do include ThemesForRails::ActionController alias_method_chain :mail, :theme end def mail_with_theme(headers = {}, &block) theme_opts = headers[:theme] || self.class.default[:theme] theme(theme_opts) if theme_opts mail_without_theme(headers, &block) end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
themes_for_rails-0.5.1 | lib/themes_for_rails/action_mailer.rb |
themes_for_rails-0.5.0 | lib/themes_for_rails/action_mailer.rb |
themes_for_rails-0.5.0.pre | lib/themes_for_rails/action_mailer.rb |