14 lines
201 B
Ruby
14 lines
201 B
Ruby
|
|
module PathsHelper
|
||
|
|
##
|
||
|
|
# Includes functions related to links or redirects
|
||
|
|
##
|
||
|
|
|
||
|
|
def active_nav_li(link)
|
||
|
|
if current_page?(link)
|
||
|
|
return 'active'
|
||
|
|
else
|
||
|
|
return ''
|
||
|
|
end
|
||
|
|
end
|
||
|
|
end
|