Skip to content

Commit

Permalink
cleanup: pass @document_list to helper method as arg
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeff Chiu committed May 24, 2017
1 parent ddf5fdb commit 88b4f1d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions app/helpers/blacklight_ris_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ def ris_path(opts = {})
end
end

def render_ris
@document_list.map {|x| x.export_as(:ris)}.compact.join("\n")
def render_ris(documents)
documents.map {|x| x.export_as(:ris)}.compact.join("\n")
end

end
2 changes: 1 addition & 1 deletion app/views/bookmarks/index.ris.erb
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<%= render_ris %>
<%= render_ris(@document_list) %>

0 comments on commit 88b4f1d

Please sign in to comment.