Sha256: 8ab6b03f1dd9f1975c3557d1c2bff778cadce271440b504bc5ecd99e02890139
Contents?: true
Size: 534 Bytes
Versions: 7
Compression:
Stored size: 534 Bytes
Contents
module EnjuBookmark module BookmarkUser def self.included(base) base.extend ClassMethods end module ClassMethods def enju_bookmark_user_model include InstanceMethods has_many :bookmarks, :dependent => :destroy acts_as_tagger end end module InstanceMethods def owned_tags_by_solr bookmark_ids = bookmarks.collect(&:id) if bookmark_ids.empty? [] else Tag.bookmarked(bookmark_ids) end end end end end
Version data entries
7 entries across 7 versions & 1 rubygems