Bump rails to 5.2 and update rubocop
This commit is contained in:
@ -1,3 +1,5 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
#
|
||||
# A primary guest.
|
||||
#
|
||||
@ -26,6 +28,7 @@ class Guest < ApplicationRecord
|
||||
def email_safe_salutation
|
||||
return 'Hello,' if
|
||||
first_name.blank? || first_name !~ /\A[\p{Word}\s'-]{1,30}\z/i
|
||||
|
||||
"Dear #{first_name},"
|
||||
end
|
||||
|
||||
|
Reference in New Issue
Block a user