shift relevant functions to versions_helper

This commit is contained in:
Agrim Mittal 2017-03-24 04:12:25 +05:30 committed by Stella Rouzi
parent b4c2eeb772
commit 255744268b
3 changed files with 3 additions and 29 deletions

View file

@ -2,10 +2,6 @@ module PathsHelper
##
# Includes functions related to links or redirects
##
def link_if_alive(version, link_text, link_url)
version.item ? link_to(link_text, link_url) : link_text
end
def link_to_user(user_id)
user = User.find_by(id: user_id)
if user