My patches for Redmine
Go to file
Eric Davis 62e58f26b0 Changed Enumerations to use a Single Table Inheritance
* Added migrations to change Enumerations to an STI relationship
* Added TimeEntryActivity model (STI)
* Added DocumentCategory model (STI)
* Added IssuePriority model (STI)
* Added Enumeration#get_subclasses to get a list of the subclasses of Enumeration
* Changed Enumeration to use the STI type field instead of the opt field
* Changed Enumeration#opt to return the old opt values but with a deprecation warning.
* Removed Enumeration::OPTIONS
* Removed the dynamic named_scopes in favor of specific named_scopes.  Kept for
  compatibility reasons.
* Added Enumeration#default so each subclass can easily find it's default record.
* Fixed Enumeration#default to use the STI scoping with a fake default scope for finding Enumeration's default.
* Added a 'all' named scope for getting all records in order by position.
* Added Deprecation warnings to the old named_scopes in Enumerations.
* Moved various methods off of Enumeration and onto the concrete classes
* Changed the EnumerationsController to use types
* Updated the Enumeration list template
* Added has_many relationships to the Enumeration STI classes.
* Fixes for tests.

  #3007

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2777 e93f8b46-1217-0410-a6f0-8f06a7374b81
2009-05-30 23:30:36 +00:00
app Changed Enumerations to use a Single Table Inheritance 2009-05-30 23:30:36 +00:00
config ru.yml translation, adding to zh.yml missed string 2009-05-18 14:34:47 +00:00
db/migrate Changed Enumerations to use a Single Table Inheritance 2009-05-30 23:30:36 +00:00
doc Updated INSTALL doc for Rails 2.2.2 2009-03-19 03:34:45 +00:00
extra Fixes Redmine.pm broken by r2726 (#3330). 2009-05-12 16:56:23 +00:00
files trunk moved from /trunk/redmine to /trunk 2006-12-05 20:45:04 +00:00
lib Added Redmine::Info.issue to get links to specific issue numbers. 2009-05-30 23:00:22 +00:00
log trunk moved from /trunk/redmine to /trunk 2006-12-05 20:45:04 +00:00
public Allows multiple roles on the same project (#706). Prerequisite for user groups feature. 2009-05-10 10:54:31 +00:00
script Add plugins information to script/about (#3387). 2009-05-25 19:10:26 +00:00
test Changed Enumerations to use a Single Table Inheritance 2009-05-30 23:30:36 +00:00
vendor/plugins Ask user what to do with child pages when deleting a parent wiki page (#3202). 2009-04-21 12:19:56 +00:00
Rakefile trunk moved from /trunk/redmine to /trunk 2006-12-05 20:45:04 +00:00