make resque worker function on non-multi-coop-installs too

This commit is contained in:
wvengen 2013-06-29 01:48:57 +02:00
parent befe89d4ef
commit 9d406bbc08

View file

@ -4,7 +4,7 @@ class UserNotifier
# Resque style method to perform every class method defined here # Resque style method to perform every class method defined here
def self.perform(foodcoop, method_name, *args) def self.perform(foodcoop, method_name, *args)
FoodsoftConfig.select_foodcoop(foodcoop) FoodsoftConfig.select_foodcoop(foodcoop) if FoodsoftConfig[:multi_coop_install]
self.send method_name, args self.send method_name, args
end end