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
1 changed files with 2 additions and 2 deletions

View File

@ -4,7 +4,7 @@ class UserNotifier
# Resque style method to perform every class method defined here
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
end
@ -40,4 +40,4 @@ class UserNotifier
end
end
end
end
end