From add46482a540b33184f3011c5c307f4b8e90c9cc Mon Sep 17 00:00:00 2001 From: Aaron Patterson Date: Fri, 25 Sep 2015 16:09:58 -0700 Subject: pull the flash methods in to their own module We only want to activate flash when the user has enabled it. Api servers don't use flash, so add an empty implementation to the base Request object. --- actionpack/lib/action_dispatch/http/request.rb | 3 +++ 1 file changed, 3 insertions(+) (limited to 'actionpack/lib/action_dispatch/http/request.rb') diff --git a/actionpack/lib/action_dispatch/http/request.rb b/actionpack/lib/action_dispatch/http/request.rb index eaa7e88b34..bf20a33d36 100644 --- a/actionpack/lib/action_dispatch/http/request.rb +++ b/actionpack/lib/action_dispatch/http/request.rb @@ -384,6 +384,9 @@ module ActionDispatch get_header("action_dispatch.logger".freeze) end + def commit_flash + end + private def check_method(name) HTTP_METHOD_LOOKUP[name] || raise(ActionController::UnknownHttpMethod, "#{name}, accepted HTTP methods are #{HTTP_METHODS[0...-1].join(', ')}, and #{HTTP_METHODS[-1]}") -- cgit v1.2.3