Skip to content

Commit

Permalink
Merge pull request #16846 from bdunne/destroy_all_the_things
Browse files Browse the repository at this point in the history
#delete skips callbacks, prefer #destroy
  • Loading branch information
carbonin authored Jan 18, 2018
2 parents 3555f91 + ad89cd5 commit bd1416e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def default_host=(host)
end

def delete_ansible_object(name)
default_ansible_objects.find_by(:name => name).try(:delete)
default_ansible_objects.find_by(:name => name).try(:destroy)
end

private
Expand Down

0 comments on commit bd1416e

Please sign in to comment.