summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
Diffstat (limited to 'app')
-rw-r--r--app/views/generic_files/_index_core.html.haml2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/generic_files/_index_core.html.haml b/app/views/generic_files/_index_core.html.haml
index 3e21b30..b8ed1f6 100644
--- a/app/views/generic_files/_index_core.html.haml
+++ b/app/views/generic_files/_index_core.html.haml
@@ -11,7 +11,7 @@
%td= generic_file.file_type
%td
%p
- %a{:href => method( :"#{@parent.class.name.underscore}_generic_file_path" ).(@parent, generic_file, :format => generic_file.file_extension), :method => :get}
+ %a{:href => method( :"#{generic_file.owner.class.name.underscore}_generic_file_path" ).(generic_file.owner, generic_file, :format => generic_file.file_extension), :method => :get}
%i{:class => 'icon-download'}
= t("generic_files.index.actions.download")