Created
July 28, 2008 06:13
-
-
Save carllerche/2846 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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