Merge pull request #6911 from cmrd-senya/unused-methods-cleanup

Remove unused methods
This commit is contained in:
Steffen van Bergerem 2016-07-08 23:15:34 +02:00
commit d0f6a7fe89
No known key found for this signature in database
GPG key ID: 2F08F75F9525C7E0
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}) 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 def post_type
self.class.name self.class.name
end end

View file

@ -149,10 +149,5 @@ class StatusMessage < Post
def self.tag_stream(tag_ids) def self.tag_stream(tag_ids)
joins(:taggings).where('taggings.tag_id IN (?)', tag_ids) joins(:taggings).where('taggings.tag_id IN (?)', tag_ids)
end end
def after_parse
# Make sure already received photos don't invalidate the model
self.photos = photos.select(&:valid?)
end
end end