Sha256: 19ecd832f28d4297a04933bce2be1f2ae95441372b3c3a15e97c0736ad7df4ea
Contents?: true
Size: 616 Bytes
Versions: 1
Compression:
Stored size: 616 Bytes
Contents
# encoding: utf-8 module RailsBestPractices module Prepares # Remember the mailer names. class MailerPrepare < Core::Check include Core::Check::Classable interesting_nodes :class interesting_files MAILER_FILES, MODEL_FILES def initialize @mailers = Prepares.mailers end # check class node. # # if it is a subclass of ActionMailer::Base, # then remember its class name. add_callback :start_class do |node| if 'ActionMailer::Base' == current_extend_class_name @mailers << @klass end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rails_best_practices-1.19.1 | lib/rails_best_practices/prepares/mailer_prepare.rb |