Replaces Enumeration.get_values and Enumeration.default with named scopes.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2472 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang
2009-02-15 13:33:09 +00:00
parent 13e2c727cf
commit 4601ed2f3a
17 changed files with 51 additions and 39 deletions
+1 -1
View File
@@ -54,7 +54,7 @@ class DocumentsController < ApplicationController
end
def edit
@categories = Enumeration::get_values('DCAT')
@categories = Enumeration.document_categories
if request.post? and @document.update_attributes(params[:document])
flash[:notice] = l(:notice_successful_update)
redirect_to :action => 'show', :id => @document