Created
June 10, 2012 13:30
-
-
Save iHiD/2905615 to your computer and use it in GitHub Desktop.
Security Article Part 2 - 4
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 User < ActiveRecord::Base | |
# Has attributes: [:username, :hashed_password, :is_admin] | |
attr_protected :is_admin | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment