##// END OF EJS Templates
remove trailing tabs from app/models/project.rb...
Toshi MARUYAMA -
r11185:e31a8e2cb33d
parent child
Show More
@@ -146,8 +146,8 class Project < ActiveRecord::Base
146 # returns latest created projects
146 # returns latest created projects
147 # non public projects will be returned only if user is a member of those
147 # non public projects will be returned only if user is a member of those
148 def self.latest(user=nil, count=5)
148 def self.latest(user=nil, count=5)
149 visible(user).limit(count).order("created_on DESC").all
149 visible(user).limit(count).order("created_on DESC").all
150 end
150 end
151
151
152 # Returns true if the project is visible to +user+ or to the current user.
152 # Returns true if the project is visible to +user+ or to the current user.
153 def visible?(user=User.current)
153 def visible?(user=User.current)
General Comments 0
You need to be logged in to leave comments. Login now