Sha256: c49961d079590830bb34d041e1932eb0bbf3ebfe4e32c4196cb439770e00f608
Contents?: true
Size: 616 Bytes
Versions: 16
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
16 entries across 16 versions & 1 rubygems