1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

fix some whitespace errors

This commit is contained in:
Aaron Patterson 2012-01-05 14:38:36 -08:00
parent 675094b275
commit 4fa10300ef

View file

@ -432,13 +432,13 @@ module ActionController
def process(action, http_method = 'GET', *args)
check_required_ivars
http_method, args = handle_old_process_api(http_method, args)
if args.first.is_a?(String)
@request.env['RAW_POST_DATA'] = args.shift
end
parameters, session, flash = args
# Ensure that numbers and symbols passed as params are converted to
# proper params, as is the case when engaging rack.
parameters = paramify_values(parameters)
@ -512,7 +512,7 @@ module ActionController
end
end
end
def handle_old_process_api(http_method, args)
# 4.0: Remove this method.
if http_method.is_a?(Hash)
@ -520,7 +520,7 @@ module ActionController
args.unshift(http_method)
http_method = args.last.is_a?(String) ? args.last : "GET"
end
[http_method, args]
end