diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2009-02-15 13:33:09 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2009-02-15 13:33:09 +0000 |
commit | 4601ed2f3aebc545024287e318494ce32bc5803f (patch) | |
tree | 40f4bda265bbc92f9ddaed1bca6deb7769f2ccae /app/models/time_entry.rb | |
parent | 13e2c727cfa7b3a9e3e9bd0563cda0a15ee3892d (diff) | |
download | redmine-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/models/time_entry.rb')
-rw-r--r-- | app/models/time_entry.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/time_entry.rb b/app/models/time_entry.rb index f10b179d1..4cb76441b 100644 --- a/app/models/time_entry.rb +++ b/app/models/time_entry.rb @@ -37,7 +37,7 @@ class TimeEntry < ActiveRecord::Base def after_initialize if new_record? && self.activity.nil? - if default_activity = Enumeration.default('ACTI') + if default_activity = Enumeration.activities.default self.activity_id = default_activity.id end end |