Skip to content

Commit

Permalink
Download path is general for every document
Browse files Browse the repository at this point in the history
  • Loading branch information
atd committed Nov 6, 2013
1 parent 62dc9b1 commit cc3492e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion documents/app/models/document.rb
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ def as_json(options)
:title => title,
:description => description,
:author => author.name,
:src => options[:helper].polymorphic_url(self, action: :download)
:src => options[:helper].download_document_url(self)
}
end

Expand Down

0 comments on commit cc3492e

Please sign in to comment.