mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
Fixed new_base tests on ruby 1.9
This commit is contained in:
@@ -4,8 +4,8 @@ module ActionController
|
||||
|
||||
depends_on AbstractController::Renderer
|
||||
|
||||
def initialize(*)
|
||||
self.formats = [:html]
|
||||
def process_action(*)
|
||||
self.formats = request.formats.map {|x| x.to_sym}
|
||||
super
|
||||
end
|
||||
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
# Build list of Mime types for HTTP responses
|
||||
# http://www.iana.org/assignments/media-types/
|
||||
|
||||
Mime::Type.register "text/html", :html, %w( application/xhtml+xml ), %w( xhtml )
|
||||
Mime::Type.register "*/*", :all
|
||||
Mime::Type.register "text/plain", :text, [], %w(txt)
|
||||
Mime::Type.register "text/html", :html, %w( application/xhtml+xml ), %w( xhtml )
|
||||
Mime::Type.register "text/javascript", :js, %w( application/javascript application/x-javascript )
|
||||
Mime::Type.register "text/css", :css
|
||||
Mime::Type.register "text/calendar", :ics
|
||||
|
||||
@@ -46,7 +46,7 @@ class Template
|
||||
end
|
||||
end
|
||||
|
||||
%r'#{Regexp.escape(path)}#{extensions}#{handler_regexp}'
|
||||
%r'^#{Regexp.escape(path)}#{extensions}#{handler_regexp}$'
|
||||
end
|
||||
|
||||
# TODO: fix me
|
||||
|
||||
@@ -12,7 +12,7 @@ module Etags
|
||||
end
|
||||
|
||||
def with_layout
|
||||
render :action => "base", :layout => "etag"
|
||||
render :action => "base", :layout => "etags"
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user