summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/redmine/views/builders.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/redmine/views/builders.rb b/lib/redmine/views/builders.rb
index 862af510b..2e04026ac 100644
--- a/lib/redmine/views/builders.rb
+++ b/lib/redmine/views/builders.rb
@@ -31,7 +31,7 @@ module Redmine
else
raise "No builder for format #{format}"
end
- if block
+ if block_given?
block.call(builder)
else
builder