##// 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 146 # returns latest created projects
147 147 # non public projects will be returned only if user is a member of those
148 148 def self.latest(user=nil, count=5)
149 visible(user).limit(count).order("created_on DESC").all
150 end
149 visible(user).limit(count).order("created_on DESC").all
150 end
151 151
152 152 # Returns true if the project is visible to +user+ or to the current user.
153 153 def visible?(user=User.current)
General Comments 0
You need to be logged in to leave comments. Login now