Fix link for UsersRole, style changes

This commit is contained in:
Stella Rouzi 2017-07-13 21:33:02 +03:00
parent c57c15de77
commit 6a3700953e
6 changed files with 62 additions and 64 deletions

View file

@ -2,14 +2,6 @@ module PathsHelper
##
# Includes functions related to links or redirects
##
def link_to_user(user_id)
user = User.find_by(id: user_id)
if user
link_to user.name, admin_user_path(id: user_id)
else
'Someone (probably via the console)'
end
end
def active_nav_li(link)
if current_page?(link)