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
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