clean up plugin store when removing data instead of setting the value to nil and do it a reasonable way.

This commit is contained in:
Erik Ordway 2014-02-25 08:26:35 -08:00
parent db411860c2
commit dfa6960799

View File

@ -23,9 +23,7 @@ class PluginStore
end end
def self.remove(plugin_name, key) def self.remove(plugin_name, key)
if row = PluginStoreRow.where(plugin_name: plugin_name, key: key).first PluginStoreRow.where(plugin_name: plugin_name, key: key).destroy_all
row.destroy
end
end end