make resque worker function on non-multi-coop-installs too
This commit is contained in:
parent
befe89d4ef
commit
9d406bbc08
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue