I have a problem with with acts_as_paranoid objects. Now i want to really destroy the object but i cant find an easy way.
I dont like to use hard coded SQL for this problem.
Somebody knows a quick nice solution?
UPDATE
I came up with the following solution. I dont like this that much but it works....
# Use this function wisely
def really_destroy
ActiveRecord::Base.connection.execute("DELETE FROM user_widgets WHERE id = #{self.id}")
end
Add a bang to the destroy
method.
def really_destroy
self.destroy!
end
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With