Removed unused method.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7980 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
b7d0ee3f47
commit
361c059a6f
@ -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."
|
render_error "An error occurred while executing the query and has been logged. Please report this error to your Redmine administrator."
|
||||||
end
|
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
|
# Renders API response on validation failure
|
||||||
def render_validation_errors(object)
|
def render_validation_errors(object)
|
||||||
options = { :status => :unprocessable_entity, :layout => false }
|
options = { :status => :unprocessable_entity, :layout => false }
|
||||||
|
Loading…
x
Reference in New Issue
Block a user