diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2011-11-29 18:15:27 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2011-11-29 18:15:27 +0000 |
commit | 361c059a6fcdfc87fdc04f67abd9c59dcb7a80fa (patch) | |
tree | a2f58f5d678b593ccfdf2dd1e202bca2e9e03416 /app/controllers | |
parent | b7d0ee3f471be28ddbce0bdd334c8d89805a6686 (diff) | |
download | redmine-361c059a6fcdfc87fdc04f67abd9c59dcb7a80fa.tar.gz redmine-361c059a6fcdfc87fdc04f67abd9c59dcb7a80fa.zip |
Removed unused method.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7980 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/controllers')
-rw-r--r-- | app/controllers/application_controller.rb | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index 907af34a5..483dcf094 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -491,13 +491,6 @@ class ApplicationController < ActionController::Base render_error "An error occurred while executing the query and has been logged. Please report this error to your Redmine administrator." end - # Converts the errors on an ActiveRecord object into a common JSON format - def object_errors_to_json(object) - object.errors.collect do |attribute, error| - { attribute => error } - end.to_json - end - # Renders API response on validation failure def render_validation_errors(object) options = { :status => :unprocessable_entity, :layout => false } |