summaryrefslogtreecommitdiffstats
path: root/app/models/time_entry.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2011-11-29 18:11:11 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2011-11-29 18:11:11 +0000
commitb8836d89b1051014fe4bc92662d44990e9430d7c (patch)
treeef0f7886bca5ed4441dc96cd955585607488c3f6 /app/models/time_entry.rb
parentd66c8faa9bc5521bc6659532542b13a0f05f0cd1 (diff)
downloadredmine-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.rb8
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