Skip to content

Commit

Permalink
#delete skips callbacks, prefer #destroy
Browse files Browse the repository at this point in the history
  • Loading branch information
bdunne committed Jan 18, 2018
1 parent 193d031 commit ad89cd5
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 ad89cd5

Please sign in to comment.