summaryrefslogtreecommitdiffstats
path: root/app/controllers/enumerations_controller.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/controllers/enumerations_controller.rb')
-rw-r--r--app/controllers/enumerations_controller.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/controllers/enumerations_controller.rb b/app/controllers/enumerations_controller.rb
index 664193fa7..b4851f1e2 100644
--- a/app/controllers/enumerations_controller.rb
+++ b/app/controllers/enumerations_controller.rb
@@ -65,12 +65,12 @@ class EnumerationsController < ApplicationController
flash[:notice] = l(:notice_successful_update)
redirect_to enumerations_path
end
- format.js {head 200}
+ format.js {head :ok}
end
else
respond_to do |format|
format.html {render :action => 'edit'}
- format.js {head 422}
+ format.js {head :unprocessable_entity}
end
end
end