Skip to content
Browse files

fixing users

  • Loading branch information...
1 parent 1a837b1 commit 0a862ab08e6c20c17fb0e64bb689f3e7c63f2312 @cactusapp cactusapp committed Oct 10, 2013
Showing with 2 additions and 1 deletion.
  1. +2 −1 app/models/user.rb
View
3 app/models/user.rb
@@ -7,7 +7,8 @@ class User < ActiveRecord::Base
:recoverable, :rememberable, :trackable, :validatable
# Setup accessible (or protected) attributes for your model
- attr_accessible :email, :password, :password_confirmation, :remember_me
+ attr_accessible :email, :password, :password_confirmation, :remember_me,
+ :warehouse_id, :first_name, :last_name, :username, :dob, :position, :sex
validates :username, length: {:within => 3..40}
validates :username, :first_name, :last_name, :email, :warehouse_id, presence: true

0 comments on commit 0a862ab

Please sign in to comment.
Something went wrong with that request. Please try again.