class Tag::PostsAssociation

Public Instance Methods

scope(opts = {}) click to toggle source
# File lib/ecrire/app/models/tag.rb, line 54
def scope(opts = {})
  Post.where('? = ANY (posts.tags)', owner.id).order('published_at DESC')
end