make sure login names are unique
This commit is contained in:
parent
c240b89ed0
commit
72d78da0e9
@ -49,6 +49,8 @@ class User < ActiveRecord::Base
|
|||||||
|
|
||||||
self.include_root_in_json = false
|
self.include_root_in_json = false
|
||||||
|
|
||||||
|
validates_uniqueness_of :login
|
||||||
|
|
||||||
# pagination variables
|
# pagination variables
|
||||||
cattr_reader :per_page
|
cattr_reader :per_page
|
||||||
@@per_page = 50
|
@@per_page = 50
|
||||||
|
Loading…
Reference in New Issue
Block a user