From dfa6960799155bd201ee26475002b77fb49b4c4f Mon Sep 17 00:00:00 2001 From: Erik Ordway Date: Tue, 25 Feb 2014 08:26:35 -0800 Subject: [PATCH] clean up plugin store when removing data instead of setting the value to nil and do it a reasonable way. --- app/models/plugin_store.rb | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/app/models/plugin_store.rb b/app/models/plugin_store.rb index dab22ad8f..0c31d02fd 100644 --- a/app/models/plugin_store.rb +++ b/app/models/plugin_store.rb @@ -23,9 +23,7 @@ class PluginStore end def self.remove(plugin_name, key) - if row = PluginStoreRow.where(plugin_name: plugin_name, key: key).first - row.destroy - end + PluginStoreRow.where(plugin_name: plugin_name, key: key).destroy_all end