~singpolyma/sgx-jmp

c2940b0b93c7c9371472bf6fed2aec1a31728ba4 — Stephen Paul Weber 1 year, 2 months ago 6723ac3
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?