summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorPeter Kozak <spag@golwen.net>2013-04-26 12:13:22 +0200
committerPeter Kozak <spag@golwen.net>2013-04-26 12:13:22 +0200
commit433883b08761d5d89c491e0c454812c618ba2b01 (patch)
tree7f9ee3570732fb9caa9a098de043fd686c1250d6 /app
parente1177a1d6ae27d3c23e3723fdea05c6ac2893294 (diff)
no breadcrumbs on empty name
Diffstat (limited to 'app')
-rw-r--r--app/controllers/generic_files_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/generic_files_controller.rb b/app/controllers/generic_files_controller.rb
index ddedbe5..69e00e1 100644
--- a/app/controllers/generic_files_controller.rb
+++ b/app/controllers/generic_files_controller.rb
@@ -79,7 +79,7 @@ class GenericFilesController < ApplicationController
add_breadcrumb t("generic_files.index.page_title"), method( :"#{@parent.class.name.underscore}_generic_files_url" ).(@parent)
- if @generic_file
+ if !@generic_file.to_s.blank?
add_breadcrumb @generic_file
end