mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-05-18 13:38:24 -04:00
Use string.start_with? instead of a regexp
This commit is contained in:
@@ -31,10 +31,10 @@ class NotificationsController < ApplicationController
|
||||
@sender_notification.read = true
|
||||
@sender_notification.save
|
||||
@recipient = @sender_notification.sender
|
||||
@subject = if @sender_notification.subject.matches?(/^Re: /)
|
||||
@subject = if @sender_notification.subject.start_with? 'Re: '
|
||||
@sender_notification.subject
|
||||
else
|
||||
"Re: " + @sender_notification.subject
|
||||
"Re: #{@sender_notification.subject}"
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user