Skip to content

Instantly share code, notes, and snippets.

@iHiD
Created June 10, 2012 14:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save iHiD/2905770 to your computer and use it in GitHub Desktop.
Save iHiD/2905770 to your computer and use it in GitHub Desktop.
Security Article Part 2 - 7
class User < ActiveRecord::Base
# Has attributes: [:username, :hashed_password, :is_admin]
attr_accessible :username
attr_accessible :username, :is_admin, :as => :internal
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment