Guest User

Untitled

a guest
Feb 19th, 2018
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1.  
  2. class Users < Application
  3.  
  4. def update
  5. @user = User.find(params[:id])
  6.  
  7. if @user.with_access_to(:staff, :banned).update_attributes(params[:user])
  8. # success
  9. end
  10.  
  11. end
  12.  
  13. end
Add Comment
Please, Sign In to add comment