diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2011-11-29 18:11:11 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2011-11-29 18:11:11 +0000 |
commit | b8836d89b1051014fe4bc92662d44990e9430d7c (patch) | |
tree | ef0f7886bca5ed4441dc96cd955585607488c3f6 /app/models/time_entry.rb | |
parent | d66c8faa9bc5521bc6659532542b13a0f05f0cd1 (diff) | |
download | redmine-b8836d89b1051014fe4bc92662d44990e9430d7c.tar.gz redmine-b8836d89b1051014fe4bc92662d44990e9430d7c.zip |
Removed deprecated methods.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7977 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/models/time_entry.rb')
-rw-r--r-- | app/models/time_entry.rb | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/app/models/time_entry.rb b/app/models/time_entry.rb index f452c4843..1afe54829 100644 --- a/app/models/time_entry.rb +++ b/app/models/time_entry.rb @@ -86,14 +86,6 @@ class TimeEntry < ActiveRecord::Base (usr == user && usr.allowed_to?(:edit_own_time_entries, project)) || usr.allowed_to?(:edit_time_entries, project) end - # TODO: remove this method in 1.3.0 - def self.visible_by(usr) - ActiveSupport::Deprecation.warn "TimeEntry.visible_by is deprecated and will be removed in Redmine 1.3.0. Use the visible scope instead." - with_scope(:find => { :conditions => Project.allowed_to_condition(usr, :view_time_entries) }) do - yield - end - end - def self.earilest_date_for_project(project=nil) finder_conditions = ARCondition.new(Project.allowed_to_condition(User.current, :view_time_entries)) if project |