rails_admin
https://github.com/railsadminteam/rails_admin
Ruby
RailsAdmin is a Rails engine that provides an easy-to-use interface for managing your data
ProjectsHelper#any_projects?
Returns true if any projects are present. If the relation has a LIMIT applied we'll cast the relation to an Array since repeated any? checks would otherwise result in multiple COUNT queries being executed. If no limit is applied we'll just issue a COUNT since the result set could be too large to load into memory.
Edit
git clone [email protected]:railsadminteam/rails_admin.git
cd rails_admin
open
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-ProjectsHelper-any_projects--for-pr
# Commit to gitgit add git commit -m "better docs for ProjectsHelper#any_projects?"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-ProjectsHelper-any_projects--for-pr
hub pull-request
# Celebrate!