RS IZ my newest fix

This commit is contained in:
ilya 2010-06-23 20:29:57 -04:00
parent 81157190ac
commit b4cc4e797f

View file

@ -38,6 +38,9 @@ class Post
self.where(:person_id => person.id).last
end
def self.my_newest
self.newest(User.first)
end
def self.newest_by_email(email)
self.where(:person_id => Person.where(:email => email).first.id).last
end