Skip to content
Browse files

make attributes accessible

  • Loading branch information...
1 parent fe11db1 commit a1aac2eaec361ac96a9ccfaee318e18c493a7dd5 @NARKOZ committed Mar 31, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 lib/vbulletin_rails/models/user.rb
View
1 lib/vbulletin_rails/models/user.rb
@@ -15,6 +15,7 @@ class User < ActiveRecord::Base
set_table_name(PREFIX + 'user')
end
+ attr_accessible :email, :password, :username
validates_presence_of :email, :password
validates_uniqueness_of :email
validates_format_of :email, :with => /^([^@\s]+)@((?:[-a-z0-9]+\.)+[a-z]{2,})$/i

0 comments on commit a1aac2e

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