Files
danbooru/app/logical/post_sets/artist.rb
albert c14f020ce2 * Fix for Pixiv changes
* Fix for artist/wiki pages for -names
2012-02-08 12:44:17 -05:00

21 lines
362 B
Ruby

module PostSets
class Artist < PostSets::Post
attr_reader :artist
def initialize(artist)
super(artist.name)
@artist = artist
end
def posts
::Post.tag_match(@artist.name)
rescue ::Post::SearchError
::Post.where("false")
end
def presenter
::PostSetPresenters::Post.new(self)
end
end
end