Skip to content
This repository
Browse code

search private / protected methods in trunk ruby

  • Loading branch information...
commit 07dc909a47b644a9fe841ceaa6234fd8abac94c6 1 parent eff507f
Aaron Patterson authored February 20, 2012
2  actionpack/lib/action_controller/metal/responder.rb
@@ -267,7 +267,7 @@ def default_action
267 267
     end
268 268
 
269 269
     def resource_errors
270  
-      respond_to?("#{format}_resource_errors") ? send("#{format}_resource_errors") : resource.errors
  270
+      respond_to?("#{format}_resource_errors", true) ? send("#{format}_resource_errors") : resource.errors
271 271
     end
272 272
 
273 273
     def json_resource_errors

0 notes on commit 07dc909

Please sign in to comment.
Something went wrong with that request. Please try again.