summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--app/models/project.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/models/project.rb b/app/models/project.rb
index 8b305f3d8..4591d563c 100644
--- a/app/models/project.rb
+++ b/app/models/project.rb
@@ -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)