presenters: inline UploadPresenter.
This commit is contained in:
@@ -1,12 +0,0 @@
|
||||
class UploadPresenter
|
||||
attr_reader :upload
|
||||
delegate :inline_tag_list_html, to: :tag_set_presenter
|
||||
|
||||
def initialize(upload)
|
||||
@upload = upload
|
||||
end
|
||||
|
||||
def tag_set_presenter
|
||||
@tag_set_presenter ||= TagSetPresenter.new(upload.tag_string.split)
|
||||
end
|
||||
end
|
||||
@@ -46,7 +46,7 @@
|
||||
|
||||
<span class="info">
|
||||
<strong>Tags</strong>
|
||||
<%= upload.presenter.inline_tag_list_html %>
|
||||
<%= TagSetPresenter.new(upload.tag_string.split).inline_tag_list_html %>
|
||||
</span>
|
||||
<% end %>
|
||||
<% t.column "Uploader" do |upload| %>
|
||||
|
||||
Reference in New Issue
Block a user