From 648f54b0effd242486b06a4005c24615445eb48b Mon Sep 17 00:00:00 2001 From: Mujin Chae Date: Thu, 21 Aug 2014 14:05:49 +0900 Subject: [PATCH] Erase Duplicated find by nickname fucntion --- app/models/user.rb | 5 ----- 1 file changed, 5 deletions(-) diff --git a/app/models/user.rb b/app/models/user.rb index ebcdd1d..e7981ab 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -24,11 +24,6 @@ def to_param nickname end - def self.find_by_nickname(nickname) - #where(arel_table[:nickname].matches("#{nickname}")).take(1) - user = User.where(:nickname => nickname).first - end - def self.from_omniauth(auth) @my_logger ||= Logger.new("#{Rails.root}/log/my.log") where(auth.slice(:provider, :uid)).first_or_create do |user|