Enable the Layout/IndentAssignment cop
This commit is contained in:
parent
9e0e553f80
commit
3363e21427
2 changed files with 7 additions and 7 deletions
|
@ -99,10 +99,10 @@ Layout/FirstParameterIndentation:
|
|||
|
||||
Layout/IndentArray:
|
||||
Enabled: true
|
||||
EnforcedStyle: consistent
|
||||
EnforcedStyle: consistent
|
||||
|
||||
Layout/IndentAssignment:
|
||||
Enabled: false
|
||||
Enabled: true
|
||||
|
||||
Layout/IndentHash:
|
||||
Enabled: false
|
||||
|
|
|
@ -15,11 +15,11 @@ class NotificationService
|
|||
|
||||
def notification
|
||||
@notification ||=
|
||||
begin
|
||||
Notification.find_by! dossier_id: @dossier_id, already_read: false, type_notif: @type_notif
|
||||
rescue ActiveRecord::RecordNotFound
|
||||
Notification.new dossier_id: @dossier_id, type_notif: @type_notif, liste: []
|
||||
end
|
||||
begin
|
||||
Notification.find_by! dossier_id: @dossier_id, already_read: false, type_notif: @type_notif
|
||||
rescue ActiveRecord::RecordNotFound
|
||||
Notification.new dossier_id: @dossier_id, type_notif: @type_notif, liste: []
|
||||
end
|
||||
end
|
||||
|
||||
def text_for_notif attribut=''
|
||||
|
|
Loading…
Reference in a new issue