pools/show: remove unused related tags calculation.
This commit is contained in:
@@ -1,15 +1,10 @@
|
|||||||
module PostSetPresenters
|
module PostSetPresenters
|
||||||
class Pool < Base
|
class Pool < Base
|
||||||
attr_reader :tag_set_presenter, :post_set
|
attr_reader :post_set
|
||||||
delegate :posts, :to => :post_set
|
delegate :posts, :to => :post_set
|
||||||
|
|
||||||
def initialize(post_set)
|
def initialize(post_set)
|
||||||
@post_set = post_set
|
@post_set = post_set
|
||||||
@tag_set_presenter = TagSetPresenter.new(
|
|
||||||
RelatedTagCalculator.calculate_from_sample_to_array(
|
|
||||||
post_set.tag_string
|
|
||||||
).map {|x| x[0]}
|
|
||||||
)
|
|
||||||
end
|
end
|
||||||
|
|
||||||
def post_previews_html(template)
|
def post_previews_html(template)
|
||||||
|
|||||||
Reference in New Issue
Block a user