Default to 0, even if constructed with nil
1 files changed, 2 insertions(+), 2 deletions(-) M lib/customer_plan.rb
M lib/customer_plan.rb => lib/customer_plan.rb +2 -2
@@ 27,8 27,8 @@ class CustomerPlan @customer_id = customer_id @plan = plan || OpenStruct.new @expires_at = expires_at @auto_top_up_amount = auto_top_up_amount @monthly_overage_limit = monthly_overage_limit @auto_top_up_amount = auto_top_up_amount || 0 @monthly_overage_limit = monthly_overage_limit || 0 end def active?