mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-10-23 07:18:22 -04:00
Changed regex to matches? to appease rubocop
This commit is contained in:
1 parent
9732553d3b
commit
a145abff56
1 file changed
+5
-3
@@ -31,9 +31,11 @@ class NotificationsController < ApplicationController
|
||||
@sender_notification.read = true
|
||||
@sender_notification.save
|
||||
@recipient = @sender_notification.sender
|
||||
@subject = @sender_notification.subject =~ /^Re: / ?
|
||||
@sender_notification.subject :
|
||||
"Re: " + @sender_notification.subject
|
||||
@subject = if @sender_notification.subject.matches?(/^Re: /)
|
||||
@sender_notification.subject
|
||||
else
|
||||
"Re: " + @sender_notification.subject
|
||||
end
|
||||
end
|
||||
|
||||
# DELETE /notifications/1
|
||||
|
||||
Reference in new issue
Block a user