Skip to content

Commit

Permalink
Remove unused methods
Browse files Browse the repository at this point in the history
  • Loading branch information
cmrd-senya committed Jul 8, 2016
1 parent 053f69b commit 026f577
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 13 deletions.
8 changes: 0 additions & 8 deletions app/models/post.rb
Expand Up @@ -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
Expand Down
5 changes: 0 additions & 5 deletions app/models/status_message.rb
Expand Up @@ -149,10 +149,5 @@ def absence_of_content
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

0 comments on commit 026f577

Please sign in to comment.