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:47 -0800 |
commit | 07dc909a47b644a9fe841ceaa6234fd8abac94c6 (patch) | |
tree | b9ba5b31b1db38a54d6c689480fdf8ac4a65c48d /actionpack | |
parent | eff507f44dea66119799ae51910d5786e21d6c81 (diff) | |
download | rails-07dc909a47b644a9fe841ceaa6234fd8abac94c6.tar.gz rails-07dc909a47b644a9fe841ceaa6234fd8abac94c6.tar.bz2 rails-07dc909a47b644a9fe841ceaa6234fd8abac94c6.zip |
search private / protected methods in trunk ruby
Diffstat (limited to 'actionpack')
-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 |