Change summary
lib/admin_command.rb | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
Detailed changes
@@ -59,9 +59,9 @@ class AdminCommand
snikket_repo=Snikket::Repo.new
)
@target_customer = target_customer
- @customer_repo = customer_repo
- @admin_action_repo = admin_action_repo
- @snikket_repo = snikket_repo
+ @customer_repo = customer_repo || (raise "No cutomer repo")
+ @admin_action_repo = admin_action_repo || (raise "No admin action repo")
+ @snikket_repo = snikket_repo || (raise "No snikket repo")
end
def start(command_action=:execute)