Created
July 12, 2011 03:56
-
-
Save zr2d2/1077365 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 | |
| # Include default devise modules. Others available are: | |
| # :token_authenticatable, :encryptable, :confirmable, :lockable, :timeoutable and :omniauthable | |
| devise :cas_authenticatable, :trackable | |
| # Setup accessible (or protected) attributes for your model | |
| attr_accessible :email, :remember_me, :username | |
| has_and_belongs_to_many :layers | |
| ROLES = %w[admin moderator author banned] | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment