Added a selector for users role in admin cp

This commit is contained in:
2013-01-28 01:30:14 -05:00
parent 55739c5fc8
commit 871c0f14f1
2 changed files with 5 additions and 5 deletions

View File

@@ -15,7 +15,7 @@ class User < ActiveRecord::Base
validates :username, :presence => true, :uniqueness => true
# Setup accessible (or protected) attributes for your model
attr_accessible :username, :email, :password, :password_confirmation, :remember_me, :is_admin
attr_accessible :username, :email, :password, :password_confirmation, :remember_me, :role_id
has_many :topics, :dependent => :destroy
has_many :posts, :dependent => :destroy