FIX: Don't bypass validations.
This commit is contained in:
parent
fe7883eeea
commit
b0752b1f91
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue