Browse Source

remove trailing tabs from app/models/project.rb

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11415 e93f8b46-1217-0410-a6f0-8f06a7374b81
tags/2.3.0
Toshi MARUYAMA 11 years ago
parent
commit
e31a8e2cb3
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      app/models/project.rb

+ 2
- 2
app/models/project.rb View File

@@ -146,8 +146,8 @@ class Project < ActiveRecord::Base
# returns latest created projects
# non public projects will be returned only if user is a member of those
def self.latest(user=nil, count=5)
visible(user).limit(count).order("created_on DESC").all
end
visible(user).limit(count).order("created_on DESC").all
end

# Returns true if the project is visible to +user+ or to the current user.
def visible?(user=User.current)

Loading…
Cancel
Save