summaryrefslogtreecommitdiff
path: root/app/views/generic_files
diff options
context:
space:
mode:
authorPeter Kozak <spag@golwen.net>2013-04-26 10:45:18 +0200
committerPeter Kozak <spag@golwen.net>2013-04-26 10:45:18 +0200
commit5129d7701de57224030468ef547859f7b651a6cd (patch)
tree7a95d22de75299aa551908bab52c04f22da0ee36 /app/views/generic_files
parentfc95124eb0eb628ddf3250b4ca4ce8a07e7deeda (diff)
parent fixed
Diffstat (limited to 'app/views/generic_files')
-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")