Cleaned up User admin index

This commit is contained in:
2013-01-24 02:35:14 -05:00
parent 75f594f9ea
commit 0fe499b701
3 changed files with 13 additions and 9 deletions

View File

@@ -10,7 +10,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
attr_accessible :username, :email, :password, :password_confirmation, :remember_me, :is_admin
has_many :topics, :dependent => :destroy
has_many :posts, :dependent => :destroy