Remove unused methods

This commit is contained in:
cmrd Senya 2016-07-08 21:30:41 +03:00
parent 053f69b67c
commit 026f577bfd
No known key found for this signature in database
GPG key ID: 5FCC5BA680E67BFE
2 changed files with 0 additions and 13 deletions

View file

@ -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

View file

@ -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