bunch of stuffs
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
class User < ActiveRecord::Base
|
||||
attr_accessible :name, :ign, :email, :about, :password, :password_confirmation, :rank
|
||||
attr_accessible :name, :ign, :email, :about, :password, :password_confirmation, :rank, :skype, :skype_public, :youtube, :youtube_channelname, :twitter
|
||||
has_secure_password
|
||||
validates_presence_of :password, :name, :email, :ign, :password_confirmation, :on => :create
|
||||
validates :email, :uniqueness => true
|
||||
@@ -8,4 +8,5 @@ class User < ActiveRecord::Base
|
||||
|
||||
has_many :blogposts
|
||||
has_many :comments
|
||||
|
||||
end
|
||||
Reference in New Issue
Block a user