~singpolyma/jmp-pay

404eb9ba744cd69c3da2e7e3c82d2f0ef0dd8c2e — Stephen Paul Weber 1 year, 9 months ago e654803
new is on class
1 files changed, 6 insertions(+), 1 deletions(-)

M lib/transaction.rb
M lib/transaction.rb => lib/transaction.rb +6 -1
@@ 11,7 11,12 @@ class Transaction
	def bonus
		return unless bonus_amount.positive?

		new(@customer_id, "bonus_for_#{@id}", bonus_amount, "#{@note} bonus")
		self.class.new(
			@customer_id,
			"bonus_for_#{@id}",
			bonus_amount,
			"#{@note} bonus"
		)
	end

	def bonus_amount