diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2012-02-20 11:02:47 -0800 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2012-02-20 11:02:56 -0800 |
commit | 3b824d66cd17965e3a9e76e36d569cf14463dcec (patch) | |
tree | f39b1a51f21c125f9e3cb1c196b1ac68eb136e73 /actionpack/lib/action_controller | |
parent | 0c0f278ab20f3042cdb69604166e18a61f8605ad (diff) | |
download | rails-3b824d66cd17965e3a9e76e36d569cf14463dcec.tar.gz rails-3b824d66cd17965e3a9e76e36d569cf14463dcec.tar.bz2 rails-3b824d66cd17965e3a9e76e36d569cf14463dcec.zip |
search private / protected methods in trunk ruby
Diffstat (limited to 'actionpack/lib/action_controller')
-rw-r--r-- | actionpack/lib/action_controller/metal/responder.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_controller/metal/responder.rb b/actionpack/lib/action_controller/metal/responder.rb index 4ad64bff20..daa1ddd65f 100644 --- a/actionpack/lib/action_controller/metal/responder.rb +++ b/actionpack/lib/action_controller/metal/responder.rb @@ -267,7 +267,7 @@ module ActionController #:nodoc: end def resource_errors - respond_to?("#{format}_resource_errors") ? send("#{format}_resource_errors") : resource.errors + respond_to?("#{format}_resource_errors", true) ? send("#{format}_resource_errors") : resource.errors end def json_resource_errors |