RS IZ my newest fix
This commit is contained in:
parent
81157190ac
commit
b4cc4e797f
1 changed files with 3 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue