anthonymidili/EasyKeep

View on GitHub
app/helpers/dashboard_helper.rb

Summary

Maintainability
A
0 mins
Test Coverage
module DashboardHelper
  # Change link according to the view the developer has requested
  def admin_or_all_users
    if params[:all_users]
      link_to 'Show only admin users', developer_dashboard_path
    else
      link_to 'Show all users', all_users_path(:all_users)
    end
  end
end