pg_search
https://github.com/casecommons/pg_search
Ruby
pg_search builds ActiveRecord named scopes that take advantage of PostgreSQL’s full text search
ApplicationHelper#current_controller?
Check if a particular controller is the current one args - One or more controller names to check Examples # On TreeController current_controller?(:tree) # => true current_controller?(:commits) # => false current_controller?(:commits, :tree) # => true
Edit
git clone [email protected]:casecommons/pg_search.git
cd pg_search
open
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-ApplicationHelper-current_controller--for-pr
# Commit to gitgit add git commit -m "better docs for ApplicationHelper#current_controller?"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-ApplicationHelper-current_controller--for-pr
hub pull-request
# Celebrate!