Fix link for UsersRole, style changes
This commit is contained in:
parent
c57c15de77
commit
6a3700953e
6 changed files with 62 additions and 64 deletions
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@ module VersionsHelper
|
|||
end
|
||||
end
|
||||
|
||||
# Recieves a model_name and id
|
||||
# Receives a model_name and id
|
||||
# Returns nil if model_name is invalid
|
||||
# Returns object in its current state if its alive
|
||||
# Otherwise Returns object state just before deletion
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue