lib/courier/service/gritter_notice.rb in courier-0.2.0 vs lib/courier/service/gritter_notice.rb in courier-0.2.1

- old
+ new

@@ -16,10 +16,10 @@ # image: /images/warning.png # # def message(owner, template, options) - scope = [:courier, :services, :gritter_notice] + scope = [:courier, :services, :gritter_notice, :templates] opt = I18n::translate(template.name, :scope=>scope) opt.merge!(options) opt[:text]||=I18n::translate([template.name,:text], opt.merge(:scope=>scope) ) owner.gritter_notice template.name, opt end