make sure login names are unique

This commit is contained in:
Lee Lawlor 2014-05-16 11:51:10 -04:00
parent c240b89ed0
commit 72d78da0e9

View File

@ -49,6 +49,8 @@ class User < ActiveRecord::Base
self.include_root_in_json = false
validates_uniqueness_of :login
# pagination variables
cattr_reader :per_page
@@per_page = 50