Skip to content

Instantly share code, notes, and snippets.

@carllerche
Created July 28, 2008 06:13
Show Gist options
  • Save carllerche/2846 to your computer and use it in GitHub Desktop.
Save carllerche/2846 to your computer and use it in GitHub Desktop.
class Users < Application
def update
@user = User.find(params[:id])
if @user.with_access_to(:staff, :banned).update_attributes(params[:user])
# success
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment