Sha256: 8172058345832b8036f20b82402697711d5a71ab4aba5090ea9de9f57977681e
Contents?: true
Size: 517 Bytes
Versions: 2
Compression:
Stored size: 517 Bytes
Contents
# -*- coding: utf-8 -*- class Courier::Service::GritterNotice < Courier::Service::Base def initialize raise "No GritterNotices. Add gem 'gritter_notices' to Gemfile." unless defined? GritterNotices super end def message(owner, template, options) options[:scope]=[:courier,:messages,:gritter_notice] unless options[:scope] options[:text]=I18n::translate(name, options ) owner.gritter_notice template.name, options end def deliver! # Nothng to do, it's realtime delivered end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
courier-0.1.3 | lib/courier/service/gritter_notice.rb |
courier-0.1.2 | lib/courier/service/gritter_notice.rb |