Factor abilities methods
Created by: cirosantilli
in app controller, user model and services.
Same code repeated 3 times.
Same behavior, less lines, and slightly more time efficient since:
- a single
@abilitiesis constructed once for the entire app - no more
add_abilitiesfilter before every action of the app, yay!