Skip to content

Latest commit

 

History

History
31 lines (20 loc) · 596 Bytes

Rails-MailerName.md

File metadata and controls

31 lines (20 loc) · 596 Bytes

Pattern: Malformed Mailer name

Issue: -

Description

This rule enforces that mailer names end with Mailer suffix.

Without the Mailer suffix it isn’t immediately apparent what’s a mailer and which views are related to the mailer.

Examples

# bad
class User < ActionMailer::Base
end

class User < ApplicationMailer
end

# good
class UserMailer < ActionMailer::Base
end

class UserMailer < ApplicationMailer
end

Further Reading