Sha256: a1a9fe6d7b2d378e669c2a5fe7438f1bb9a2082870516e76c7d49987908b90bd

Contents?: true

Size: 402 Bytes

Versions: 26

Compression:

Stored size: 402 Bytes

Contents

module NoNotifierNeeded
  module Sender
    def mcp(email_name, args)
      @template = EmailTemplate.find_by_name(email_name)
      raise "Email Template name not found" if @template.nil?

      args_to_instance_vars(args)

      mail_is = mail(get_send_hash) do|format|
        format.html { render :inline => render_template_body_type(@template) }
      end

      return mail_is
    end
  end
end

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
no_notifier_needed-2.1.0 lib/no_notifier_needed/sender.rb
no_notifier_needed-2.0.13 lib/no_notifier_needed/sender.rb
no_notifier_needed-2.0.12 lib/no_notifier_needed/sender.rb
no_notifier_needed-2.0.11 lib/no_notifier_needed/sender.rb
no_notifier_needed-2.0.9 lib/no_notifier_needed/sender.rb
no_notifier_needed-2.0.8 lib/no_notifier_needed/sender.rb