Remove unused methods
This commit is contained in:
parent
053f69b67c
commit
026f577bfd
2 changed files with 0 additions and 13 deletions
|
|
@ -54,14 +54,6 @@ class Post < ActiveRecord::Base
|
|||
joins(:likes).where(:likes => {:author_id => person.id})
|
||||
}
|
||||
|
||||
def self.visible_from_author(author, current_user=nil)
|
||||
if current_user.present?
|
||||
current_user.posts_from(author)
|
||||
else
|
||||
author.posts.all_public
|
||||
end
|
||||
end
|
||||
|
||||
def post_type
|
||||
self.class.name
|
||||
end
|
||||
|
|
|
|||
|
|
@ -149,10 +149,5 @@ class StatusMessage < Post
|
|||
def self.tag_stream(tag_ids)
|
||||
joins(:taggings).where('taggings.tag_id IN (?)', tag_ids)
|
||||
end
|
||||
|
||||
def after_parse
|
||||
# Make sure already received photos don't invalidate the model
|
||||
self.photos = photos.select(&:valid?)
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue