##// END OF EJS Templates
update copyright year (#15977)...
update copyright year (#15977) Contributed by Daniel Felix. git-svn-id: http://svn.redmine.org/redmine/trunk@12736 e93f8b46-1217-0410-a6f0-8f06a7374b81

File last commit:

r12461:35cc911192e0
r12461:35cc911192e0
Show More
builders.rb
38 lines | 1.3 KiB | text/x-ruby | RubyLexer
Jean-Philippe Lang
Adds a builder-like template system for rendering xml and json API responses....
r4338 # Redmine - project management software
Toshi MARUYAMA
update copyright year (#15977)...
r12461 # Copyright (C) 2006-2014 Jean-Philippe Lang
Jean-Philippe Lang
Adds a builder-like template system for rendering xml and json API responses....
r4338 #
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
Toshi MARUYAMA
remove trailing white-spaces from lib/redmine/views/builders.rb....
r6841 #
Jean-Philippe Lang
Adds a builder-like template system for rendering xml and json API responses....
r4338 # This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
Toshi MARUYAMA
remove trailing white-spaces from lib/redmine/views/builders.rb....
r6841 #
Jean-Philippe Lang
Adds a builder-like template system for rendering xml and json API responses....
r4338 # You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
Jean-Philippe Lang
Explicitly load dependencies for when running with config.threadsafe! (#12097)....
r10682 require 'redmine/views/builders/json'
require 'redmine/views/builders/xml'
Jean-Philippe Lang
Adds a builder-like template system for rendering xml and json API responses....
r4338 module Redmine
module Views
module Builders
Jean-Philippe Lang
Adds JSONP support to the API (#11469)....
r9905 def self.for(format, request, response, &block)
Jean-Philippe Lang
Adds a builder-like template system for rendering xml and json API responses....
r4338 builder = case format
Jean-Philippe Lang
Adds JSONP support to the API (#11469)....
r9905 when 'xml', :xml; Builders::Xml.new(request, response)
when 'json', :json; Builders::Json.new(request, response)
Jean-Philippe Lang
Adds a builder-like template system for rendering xml and json API responses....
r4338 else; raise "No builder for format #{format}"
end
if block
block.call(builder)
else
builder
end
end
end
end
end