diff options
author | Go MAEDA <maeda@farend.jp> | 2020-05-30 04:53:24 +0000 |
---|---|---|
committer | Go MAEDA <maeda@farend.jp> | 2020-05-30 04:53:24 +0000 |
commit | ebf5d219c9a8211c083dede3b9b9048bc68f257e (patch) | |
tree | dc036b5d5ee7f5b5ca4228c2cdcc0726c491a48c /app/helpers | |
parent | 454bed8143baa7e7b51f7571196b068ff4297b93 (diff) | |
download | redmine-ebf5d219c9a8211c083dede3b9b9048bc68f257e.tar.gz redmine-ebf5d219c9a8211c083dede3b9b9048bc68f257e.zip |
Import user accounts from CSV file (#33102).
Patch by Takenori TAKAKI.
git-svn-id: http://svn.redmine.org/redmine/trunk@19799 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/helpers')
-rw-r--r-- | app/helpers/application_helper.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index bf55e05a5..1b4a65b4c 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -1700,6 +1700,16 @@ module ApplicationHelper } end + def render_if_exist(options = {}, locals = {}, &block) + if options[:partial] + if lookup_context.exists?(options[:partial], lookup_context.prefixes, true) + render(options, locals, &block) + end + else + render(options, locals, &block) + end + end + private def wiki_helper |