Added a selector for users role in admin cp
This commit is contained in:
1 parent
55739c5fc8
commit
871c0f14f1
2 files changed
+5
-5
No files matched your search
+1
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user