Sha256: a023c77fef7f7b1030a6475e065caa6e4a2f701f5236eb05d58aac336aceecb8
Contents?: true
Size: 784 Bytes
Versions: 1
Compression:
Stored size: 784 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 # # В локале создается хеш всех параметров принимаемых GritterNotice # # template_key: # title: Внимание! # text: Ва прошли на новый уровень # level: warning # image: /images/warning.png # # def message(owner, template, options) options[:scope]=[:courier, :gritter_notice] unless options[:scope] owner.gritter_notice template.name, I18n::translate(template.name, options ) end def deliver! # Nothng to do, it's realtime delivered end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
courier-0.1.4 | lib/courier/service/gritter_notice.rb |