app/lib/actions/katello/activation_key/update.rb in katello-3.15.3.1 vs app/lib/actions/katello/activation_key/update.rb in katello-3.16.0.rc1
- old
+ new
@@ -4,10 +4,10 @@
class Update < Actions::EntryAction
def plan(activation_key, activation_key_params)
# need to check if candlepin attributes have changed prior to updating attributes
update_candlepin = update_candlepin?(activation_key, activation_key_params)
action_subject activation_key
- activation_key.update_attributes!(activation_key_params)
+ activation_key.update!(activation_key_params)
if update_candlepin
plan_action(::Actions::Candlepin::ActivationKey::Update,
cp_id: activation_key.cp_id,
release_version: activation_key.release_version,
service_level: activation_key.service_level,