fix for name change requests
This commit is contained in:
@@ -9,7 +9,7 @@ class UserNameChangeRequest < ActiveRecord::Base
|
|||||||
validates_format_of :desired_name, :with => /\A[^\s:]+\Z/, :on => :create, :message => "cannot have whitespace or colons"
|
validates_format_of :desired_name, :with => /\A[^\s:]+\Z/, :on => :create, :message => "cannot have whitespace or colons"
|
||||||
before_validation :normalize_name
|
before_validation :normalize_name
|
||||||
after_create :notify_admins
|
after_create :notify_admins
|
||||||
attr_accessible :status, :user_id, :original_name, :desired_name, :change_reason, :rejection_reason
|
attr_accessible :status, :user_id, :original_name, :desired_name, :change_reason, :rejection_reason, :approver_id
|
||||||
|
|
||||||
def self.pending
|
def self.pending
|
||||||
where(:status => "pending")
|
where(:status => "pending")
|
||||||
|
|||||||
Reference in New Issue
Block a user