Skip to content

Commit

Permalink
Add prepend true to around_destroy
Browse files Browse the repository at this point in the history
Allow the around destroy callback to also prepend to the front of the callback chain
  • Loading branch information
syncrou committed Apr 25, 2017
1 parent e391b26 commit f44a845
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/service_template_ansible_playbook.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
class ServiceTemplateAnsiblePlaybook < ServiceTemplateGeneric
before_destroy :check_retirement_potential, :prepend => true
around_destroy :around_destroy_callback
around_destroy :around_destroy_callback, :prepend => true

RETIREMENT_ENTRY_POINTS = {
'yes_without_playbook' => '/Service/Generic/StateMachines/GenericLifecycle/Retire_Basic_Resource',
Expand Down

0 comments on commit f44a845

Please sign in to comment.