refractor code into different files

This commit is contained in:
hitman 2017-03-06 23:54:29 +05:30 committed by Stella Rouzi
parent 8320f78d0b
commit 5dece1ea48
4 changed files with 75 additions and 38 deletions

View file

@ -15,6 +15,14 @@ module PathsHelper
end
end
def sign_in_path
if ENV['OSEM_ICHAIN_ENABLED'] == 'true'
new_user_ichain_session_path
else
new_user_session_path
end
end
def active_nav_li(link)
if current_page?(link)
return 'active'