From 940865b492f082c68e692a5ce26ff2460f6027be Mon Sep 17 00:00:00 2001 From: Ed Bennigsen Date: Tue, 10 Sep 2019 16:37:38 +0100 Subject: [PATCH] Make organisation be its own hash --- lib/prayermate_api.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/prayermate_api.rb b/lib/prayermate_api.rb index 3f144b8..90b95d0 100644 --- a/lib/prayermate_api.rb +++ b/lib/prayermate_api.rb @@ -40,12 +40,12 @@ def resize_image(url, filename) HTTParty.post(api_path("images/resize"), body: { url: url, target_filename: filename }, headers: http_headers) end - def register_with_promo_code(promo_code, first_name, last_name, email, roles, organisation_details) - register({ promo_code: promo_code }.merge(organisation_details), first_name, last_name, email, roles) + def register_with_promo_code(promo_code, first_name, last_name, email, roles, organisation) + register({ promo_code: promo_code, organisation: organisation }, first_name, last_name, email, roles) end - def register_with_price_plan(price_plan, first_name, last_name, email, roles, organisation_details) - register({ price_plan: price_plan }.merge(organisation_details), first_name, last_name, email, roles) + def register_with_price_plan(price_plan, first_name, last_name, email, roles, organisation) + register({ price_plan: price_plan, organisation: organisation }, first_name, last_name, email, roles) end