Ticket #9952: use_new_filter_convention_in_actionpack_internals.diff
| File use_new_filter_convention_in_actionpack_internals.diff, 2.3 kB (added by josh, 1 year ago) |
|---|
-
actionpack/test/controller/flash_test.rb
old new 70 70 flash["foo"] = "bar" 71 71 redirect_to :action => "std_action" 72 72 @flash_copy = {}.update(flash) 73 false74 73 end 75 74 end 76 75 -
actionpack/lib/action_controller/http_authentication.rb
old new 93 93 end 94 94 95 95 def authenticate(controller, &login_procedure) 96 if authorization(controller.request).blank? 97 false 98 else 96 unless authorization(controller.request).blank? 99 97 login_procedure.call(*user_name_and_password(controller.request)) 100 98 end 101 99 end … … 122 120 def authentication_request(controller, realm) 123 121 controller.headers["WWW-Authenticate"] = %(Basic realm="#{realm.gsub(/"/, "")}") 124 122 controller.send! :render, :text => "HTTP Basic: Access denied.\n", :status => :unauthorized 125 return false126 123 end 127 124 end 128 125 end -
actionpack/lib/action_controller/verification.rb
old new 98 98 options[:redirect_to] = self.send!(options[:redirect_to]) if options[:redirect_to].is_a? Symbol 99 99 redirect_to(options[:redirect_to]) if options[:redirect_to] 100 100 end 101 return false102 101 end 103 104 true105 102 end 106 103 private :verify_action 107 104 end -
actionpack/lib/action_controller/filters.rb
old new 761 761 def halt_filter_chain(filter, reason) 762 762 @before_filter_chain_aborted = true 763 763 logger.info "Filter chain halted as [#{filter.inspect}] #{reason}." if logger 764 false765 764 end 766 765 end 767 766 end