removed mass assignment of user_id in the users model
This commit is contained in:
+1
-1
@@ -1,5 +1,5 @@
|
||||
class User < ActiveRecord::Base
|
||||
attr_accessible :email, :password, :user_id, :admin, :password_confirmation, :first_name, :last_name
|
||||
attr_accessible :email, :password, :admin, :password_confirmation, :first_name, :last_name
|
||||
validates_confirmation_of :password, :password_confirmation, :on => :create
|
||||
validates :password, :presence => true,
|
||||
:confirmation => true,
|
||||
|
||||
Reference in New Issue
Block a user