summaryrefslogtreecommitdiffstats
path: root/app/helpers
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2009-02-15 13:33:09 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2009-02-15 13:33:09 +0000
commit4601ed2f3aebc545024287e318494ce32bc5803f (patch)
tree40f4bda265bbc92f9ddaed1bca6deb7769f2ccae /app/helpers
parent13e2c727cfa7b3a9e3e9bd0563cda0a15ee3892d (diff)
downloadredmine-4601ed2f3aebc545024287e318494ce32bc5803f.tar.gz
redmine-4601ed2f3aebc545024287e318494ce32bc5803f.zip
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
Diffstat (limited to 'app/helpers')
-rw-r--r--app/helpers/timelog_helper.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/helpers/timelog_helper.rb b/app/helpers/timelog_helper.rb
index f068b4db8..f43bce0bc 100644
--- a/app/helpers/timelog_helper.rb
+++ b/app/helpers/timelog_helper.rb
@@ -27,7 +27,7 @@ module TimelogHelper
end
def activity_collection_for_select_options
- activities = Enumeration::get_values('ACTI')
+ activities = Enumeration.activities
collection = []
collection << [ "--- #{l(:actionview_instancetag_blank_option)} ---", '' ] unless activities.detect(&:is_default)
activities.each { |a| collection << [a.name, a.id] }