Apply Style/SymbolProc rubocop rule
This style is much more concise.
This commit is contained in:
@@ -91,7 +91,7 @@ class Admin::SystemEmailsController < Admin::BaseController
|
||||
end
|
||||
|
||||
def load_sample_reply
|
||||
reply = Comment.select { |comment| comment.reply? }.last
|
||||
reply = Comment.select(&:reply?).last
|
||||
if reply
|
||||
@email = ReplyEmail.new(reply)
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user