Files
danbooru/app/logical/post_sets/artist.rb
2011-08-05 19:33:39 -04:00

19 lines
312 B
Ruby

module PostSets
class Artist < PostSets::Post
attr_reader :artist
def initialize(artist)
super(:tags => artist.name)
@artist = artist
end
def posts
::Post.tag_match(@artist.name)
end
def presenter
::PostSetPresenters::Post.new(self)
end
end
end