revert default scope change

This commit is contained in:
albert
2013-01-07 17:24:03 -05:00
parent 040059c491
commit 80f34d08d9
25 changed files with 0 additions and 25 deletions

View File

@@ -45,7 +45,6 @@ class User < ActiveRecord::Base
scope :with_email, lambda {|email| email.blank? ? where("FALSE") : where(["email = ?", email])}
scope :find_for_password_reset, lambda {|name, email| email.blank? ? where("FALSE") : where(["name = ? AND email = ?", name, email])}
search_method :named
default_scope limit(1)
module BanMethods
def validate_ip_addr_is_not_banned