]> git.openstreetmap.org Git - rails.git/commit
Rename Notifier to UserMailer
authorAndy Allan <git@gravitystorm.co.uk>
Wed, 14 Oct 2020 13:04:58 +0000 (15:04 +0200)
committerAndy Allan <git@gravitystorm.co.uk>
Wed, 14 Oct 2020 13:04:58 +0000 (15:04 +0200)
commit2c1033f62d450b7ed82058ee89d99983b7d97829
tree24de9ad25791c0a8af4a983f33483843f4100cc3
parent9b19a45e74abd4414bb79d6b992f7bec14390ad6
Rename Notifier to UserMailer

It's a convention in rails to name your mailers with a Mailer suffix, and is also common to name the class after the recipient (e.g. User, Admin). So UserMailer seems a reasonable choice.
37 files changed:
.rubocop_todo.yml
app/controllers/api/changeset_comments_controller.rb
app/controllers/api/notes_controller.rb
app/controllers/diary_entries_controller.rb
app/controllers/friendships_controller.rb
app/controllers/messages_controller.rb
app/controllers/users_controller.rb
app/helpers/user_mailer_helper.rb [moved from app/helpers/notifier_helper.rb with 97% similarity]
app/jobs/trace_importer_job.rb
app/mailers/user_mailer.rb [moved from app/mailers/notifier.rb with 83% similarity]
app/views/notifier/_gpx_description.html.erb [deleted file]
app/views/notifier/email_confirm.html.erb [deleted file]
app/views/notifier/email_confirm.text.erb [deleted file]
app/views/notifier/gpx_failure.html.erb [deleted file]
app/views/notifier/lost_password.html.erb [deleted file]
app/views/notifier/lost_password.text.erb [deleted file]
app/views/user_mailer/_gpx_description.html.erb [new file with mode: 0644]
app/views/user_mailer/_message_body.html.erb [moved from app/views/notifier/_message_body.html.erb with 100% similarity]
app/views/user_mailer/changeset_comment_notification.html.erb [moved from app/views/notifier/changeset_comment_notification.html.erb with 100% similarity]
app/views/user_mailer/changeset_comment_notification.text.erb [moved from app/views/notifier/changeset_comment_notification.text.erb with 100% similarity]
app/views/user_mailer/diary_comment_notification.html.erb [moved from app/views/notifier/diary_comment_notification.html.erb with 100% similarity]
app/views/user_mailer/diary_comment_notification.text.erb [moved from app/views/notifier/diary_comment_notification.text.erb with 100% similarity]
app/views/user_mailer/email_confirm.html.erb [new file with mode: 0644]
app/views/user_mailer/email_confirm.text.erb [new file with mode: 0644]
app/views/user_mailer/friendship_notification.html.erb [moved from app/views/notifier/friendship_notification.html.erb with 100% similarity]
app/views/user_mailer/friendship_notification.text.erb [moved from app/views/notifier/friendship_notification.text.erb with 100% similarity]
app/views/user_mailer/gpx_failure.html.erb [new file with mode: 0644]
app/views/user_mailer/gpx_success.html.erb [moved from app/views/notifier/gpx_success.html.erb with 57% similarity]
app/views/user_mailer/lost_password.html.erb [new file with mode: 0644]
app/views/user_mailer/lost_password.text.erb [new file with mode: 0644]
app/views/user_mailer/message_notification.html.erb [moved from app/views/notifier/message_notification.html.erb with 100% similarity]
app/views/user_mailer/message_notification.text.erb [moved from app/views/notifier/message_notification.text.erb with 100% similarity]
app/views/user_mailer/note_comment_notification.html.erb [moved from app/views/notifier/note_comment_notification.html.erb with 100% similarity]
app/views/user_mailer/note_comment_notification.text.erb [moved from app/views/notifier/note_comment_notification.text.erb with 100% similarity]
app/views/user_mailer/signup_confirm.html.erb [moved from app/views/notifier/signup_confirm.html.erb with 100% similarity]
app/views/user_mailer/signup_confirm.text.erb [moved from app/views/notifier/signup_confirm.text.erb with 100% similarity]
config/locales/en.yml