reject! will be better here

This commit is contained in:
Robert Gerus 2014-03-25 07:21:49 +01:00
parent 823ed51161
commit 838f03a574

View file

@ -20,7 +20,7 @@ class Repost
end
def unregister_command(keyword)
self.commands.delete_if { |item| item[:keyword] == keyword }
self.commands.reject! { |item| item[:keyword] == keyword }
end
# just a stub for now