FIX: Don't bypass validations.

This commit is contained in:
Guo Xiang Tan 2016-09-15 10:15:17 +08:00
parent fe7883eeea
commit b0752b1f91
1 changed files with 1 additions and 1 deletions

View File

@ -151,7 +151,7 @@ class CategoriesController < ApplicationController
old_permissions = cat.permissions_params
if result = cat.update(category_params)
if result = cat.update_attributes(category_params)
Scheduler::Defer.later "Log staff action change category settings" do
@staff_action_logger.log_category_settings_change(@category, category_params, old_permissions)
end