diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-08-27 10:54:01 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-08-27 10:54:01 +0000 |
commit | 3a77d543fdc1a3f03fa2588bd21e106a9267c9bc (patch) | |
tree | d76605245ae902c6103f599a61955db568c60f2d | |
parent | d33fa1f8c87f1de83eb56c2f0376a2e3f7f6ed86 (diff) | |
download | redmine-3a77d543fdc1a3f03fa2588bd21e106a9267c9bc.tar.gz redmine-3a77d543fdc1a3f03fa2588bd21e106a9267c9bc.zip |
Code cleanup: removed the obsolete with_limit scope.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10243 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r-- | app/models/issue.rb | 1 | ||||
-rw-r--r-- | app/views/my/blocks/_issueswatched.html.erb | 2 |
2 files changed, 1 insertions, 2 deletions
diff --git a/app/models/issue.rb b/app/models/issue.rb index 7807d2859..c7358c0e5 100644 --- a/app/models/issue.rb +++ b/app/models/issue.rb @@ -70,7 +70,6 @@ class Issue < ActiveRecord::Base } scope :recently_updated, :order => "#{Issue.table_name}.updated_on DESC" - scope :with_limit, lambda { |limit| { :limit => limit} } scope :on_active_project, :include => [:status, :project, :tracker], :conditions => ["#{Project.table_name}.status=#{Project::STATUS_ACTIVE}"] diff --git a/app/views/my/blocks/_issueswatched.html.erb b/app/views/my/blocks/_issueswatched.html.erb index e34c4bad7..6bc31ae37 100644 --- a/app/views/my/blocks/_issueswatched.html.erb +++ b/app/views/my/blocks/_issueswatched.html.erb @@ -1,5 +1,5 @@ <h3><%=l(:label_watched_issues)%> (<%= Issue.visible.watched_by(user.id).count %>)</h3> -<% watched_issues = Issue.visible.on_active_project.watched_by(user.id).recently_updated.with_limit(10) %> +<% watched_issues = Issue.visible.on_active_project.watched_by(user.id).recently_updated.limit(10) %> <%= render :partial => 'issues/list_simple', :locals => { :issues => watched_issues } %> <% if watched_issues.length > 0 %> |