]> source.dussan.org Git - redmine.git/commitdiff
Prevent "Overwriting existing method User.active" warning, scope is already defined...
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Tue, 7 Aug 2012 16:14:24 +0000 (16:14 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Tue, 7 Aug 2012 16:14:24 +0000 (16:14 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10160 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/models/user.rb

index 5aac1d1fe4e282523cfd8acdab89757395c1a9a9..9350fb95c64674539adddf31c472051702ebcbc0 100644 (file)
@@ -52,8 +52,6 @@ class User < Principal
   has_one :api_token, :class_name => 'Token', :conditions => "action='api'"
   belongs_to :auth_source
 
-  # Active non-anonymous users scope
-  scope :active, :conditions => "#{User.table_name}.status = #{STATUS_ACTIVE}"
   scope :logged, :conditions => "#{User.table_name}.status <> #{STATUS_ANONYMOUS}"
   scope :status, lambda {|arg| arg.blank? ? {} : {:conditions => {:status => arg.to_i}} }