Skip to content

Commit

Permalink
Erase Duplicated find by nickname fucntion
Browse files Browse the repository at this point in the history
  • Loading branch information
MoojinChae committed Aug 21, 2014
1 parent 2cc2a7a commit 648f54b
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions app/models/user.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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|
Expand Down

0 comments on commit 648f54b

Please sign in to comment.