mirror of
https://github.com/redmine/redmine.git
synced 2025-11-10 15:26:03 +01:00
Localization plugin removed (replaced with GLoc)
git-svn-id: http://redmine.rubyforge.org/svn/trunk@14 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -21,18 +21,14 @@ class Enumeration < ActiveRecord::Base
|
||||
validates_presence_of :opt, :name
|
||||
validates_uniqueness_of :name, :scope => [:opt]
|
||||
|
||||
OPTIONS = [
|
||||
["Issue priorities", "IPRI"],
|
||||
["Document categories", "DCAT"]
|
||||
].freeze
|
||||
OPTIONS = {
|
||||
"IPRI" => :enumeration_issue_priorities,
|
||||
"DCAT" => :enumeration_doc_categories
|
||||
}.freeze
|
||||
|
||||
def self.get_values(option)
|
||||
find(:all, :conditions => ['opt=?', option])
|
||||
end
|
||||
|
||||
def name
|
||||
_ self.attributes['name']
|
||||
end
|
||||
|
||||
private
|
||||
def check_integrity
|
||||
|
||||
Reference in New Issue
Block a user