Guest User

Untitled

a guest
Feb 18th, 2018
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. App.controllers :manufacturers do
  2. include CanCan::ControllerAdditions
  3.  
  4. get :index do
  5. authorize! :manufacturers, :index
  6. manufacturers = Manufacturer.page params[:page]
  7. render 'manufacturers/index', :locals => {:manufacturers => manufacturers}
  8. end
  9. ...
  10. end
Add Comment
Please, Sign In to add comment