app/helpers/workbench/sessions_helper.rb
# TODO: make this a non-controller method
make this a non-controller method
make this a non - controller method
def session_header_links
    [
      project_settings_link,
      administration_link,
      link_to('Account', sessions_current_user, data: { 
        current_user_id: sessions_current_user.id.to_s,
        current_user_is_administrator: sessions_current_user.is_administrator,
      }),
      link_to('Sign out', signout_path, method: :delete, id: 'sign_out')
    ]
  end
def session_header_links [ project_settings_link , administration_link , link_to ( 'Account' , sessions_current_user , data : { current_user_id : sessions_current_user . id . to_s , current_user_is_administrator : sessions_current_user . is_administrator , } ) , link_to ( 'Sign out' , signout_path , method : :delete , id : 'sign_out' ) ] end
TODO: make this a non-controller method
TODO : make this a non - controller method