diff options
author | mhasbini <mohammad.hasbini@gmail.com> | 2017-03-31 18:11:28 +0300 |
---|---|---|
committer | mhasbini <mohammad.hasbini@gmail.com> | 2017-04-02 12:48:43 +0300 |
commit | 0a09925dcef1976970bc2674432f69d46786c38f (patch) | |
tree | f3b82c46b3050864fbd2e3331faae8ea37c3b6a3 /app/mailers | |
parent | 9fc17f6f4abdb04f3cf1b60b87bd67b894a19c39 (diff) | |
download | gitlab-ce-0a09925dcef1976970bc2674432f69d46786c38f.tar.gz |
Enable Style/Proc cop for rubocop
Diffstat (limited to 'app/mailers')
-rw-r--r-- | app/mailers/base_mailer.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/mailers/base_mailer.rb b/app/mailers/base_mailer.rb index 79c3c2e62c5..a9b6b33eb5c 100644 --- a/app/mailers/base_mailer.rb +++ b/app/mailers/base_mailer.rb @@ -5,8 +5,8 @@ class BaseMailer < ActionMailer::Base attr_accessor :current_user helper_method :current_user, :can? - default from: Proc.new { default_sender_address.format } - default reply_to: Proc.new { default_reply_to_address.format } + default from: proc { default_sender_address.format } + default reply_to: proc { default_reply_to_address.format } def can? Ability.allowed?(current_user, action, subject) |