git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11762
e93f8b46-1217-0410-a6f0-
8f06a7374b81
return
end
end
- @enumerations = @enumeration.class.all - [@enumeration]
+ @enumerations = @enumeration.class.system.all - [@enumeration]
end
private
scope :shared, lambda { where(:project_id => nil) }
scope :sorted, lambda { order("#{table_name}.position ASC") }
scope :active, lambda { where(:active => true) }
+ scope :system, lambda { where(:project_id => nil) }
scope :named, lambda {|arg| where("LOWER(#{table_name}.name) = LOWER(?)", arg.to_s.strip)}
def self.default