mirror of
				https://github.com/discourse/discourse.git
				synced 2025-02-25 18:55:32 -06:00 
			
		
		
		
	Refactor SessionController#create, reduce complexity.
Don't compromise readablity
This commit is contained in:
		@@ -19,6 +19,11 @@ class EmailLog < ActiveRecord::Base
 | 
			
		||||
    EmailLog.where(reply_key: reply_key).first
 | 
			
		||||
  end
 | 
			
		||||
 | 
			
		||||
  def self.last_sent_email_address
 | 
			
		||||
    where(email_type: 'signup').order('created_at DESC')
 | 
			
		||||
                               .first.try(:to_address)
 | 
			
		||||
  end
 | 
			
		||||
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
# == Schema Information
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user