summaryrefslogtreecommitdiffstats
path: root/lib/redmine/views/builders.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/redmine/views/builders.rb')
-rw-r--r--lib/redmine/views/builders.rb7
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/redmine/views/builders.rb b/lib/redmine/views/builders.rb
index 907a56a69..4efdfbd48 100644
--- a/lib/redmine/views/builders.rb
+++ b/lib/redmine/views/builders.rb
@@ -25,9 +25,10 @@ module Redmine
module Builders
def self.for(format, request, response, &block)
builder = case format
- when 'xml', :xml; Builders::Xml.new(request, response)
- when 'json', :json; Builders::Json.new(request, response)
- else; raise "No builder for format #{format}"
+ when 'xml', :xml then Builders::Xml.new(request, response)
+ when 'json', :json then Builders::Json.new(request, response)
+ else
+ raise "No builder for format #{format}"
end
if block
block.call(builder)