diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2015-11-16 09:53:17 +0100 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2015-11-16 13:01:34 +0100 |
commit | c9f2f2a4838f9aa49782acdb7cfad75d06f31ac2 (patch) | |
tree | 5c9e45b09c4123fd8ec859dd768ac058f87bef23 | |
parent | 0698c96d7dc472a0e7e74c290047a50eeddf27bb (diff) | |
download | gitlab-ce-c9f2f2a4838f9aa49782acdb7cfad75d06f31ac2.tar.gz |
Fix wrong variable namerefactor-duplication
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
-rw-r--r-- | app/helpers/notifications_helper.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/helpers/notifications_helper.rb b/app/helpers/notifications_helper.rb index ba072786145..499c655d2bf 100644 --- a/app/helpers/notifications_helper.rb +++ b/app/helpers/notifications_helper.rb @@ -30,9 +30,9 @@ module NotificationsHelper end end - def update_notification_link(notification_label, user_membership, title, icon) + def update_notification_link(notification_level, user_membership, title, icon) content_tag(:li, class: active_level_for(user_membership, notification_level)) do - link_to '#', class: 'update-notification', data: { notification_level: notification_label } do + link_to '#', class: 'update-notification', data: { notification_level: notification_level } do icon("#{icon} fw", text: title) end end |