fix variable naming conflict

This commit is contained in:
Mike Greiling 2017-08-30 19:33:24 -05:00
parent 68de5dcba2
commit cf37f0b173
1 changed files with 2 additions and 2 deletions

View File

@ -165,10 +165,10 @@ module VisibilityLevelHelper
private
def visibility_level_errors_for_group(group, level_name)
group = link_to group.name, group_path(group)
group_name = link_to group.name, group_path(group)
change_visiblity = link_to 'change the visibility', edit_group_path(group)
{ reason: "the visibility of #{group} is #{group.visibility}",
{ reason: "the visibility of #{group_name} is #{group.visibility}",
instruction: " To make this group #{level_name}, you must first #{change_visiblity} of the parent group." }
end
end