diff options
author | Peter Kozak <spag@golwen.net> | 2013-04-26 12:13:22 +0200 |
---|---|---|
committer | Peter Kozak <spag@golwen.net> | 2013-04-26 12:13:22 +0200 |
commit | 433883b08761d5d89c491e0c454812c618ba2b01 (patch) | |
tree | 7f9ee3570732fb9caa9a098de043fd686c1250d6 /app | |
parent | e1177a1d6ae27d3c23e3723fdea05c6ac2893294 (diff) |
no breadcrumbs on empty name
Diffstat (limited to 'app')
-rw-r--r-- | app/controllers/generic_files_controller.rb | 2 |
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 |