Skip to content

Commit

Permalink
Actually fix regex
Browse files Browse the repository at this point in the history
  • Loading branch information
AnthonySuper committed Sep 25, 2015
1 parent 37a62a2 commit c33813f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/user.rb
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ class User < ActiveRecord::Base
###############
validates :name, presence: true,
uniqueness: {case_sensitive: false},
format: {with: /\A([[:alpha:]]|w)+\z/},
format: {with: /\A([[:alpha:]]|\w)+\z/ },
length: {in: 2..25}
validates :page_pref, inclusion: {:in => (1..100)}
validates_associated :user_page
Expand Down

0 comments on commit c33813f

Please sign in to comment.