Skip to content

Commit 022df27

Browse files
committed
Removed the Peepcode from Bundle.
1 parent 541118d commit 022df27

File tree

6 files changed

+227
-231
lines changed

6 files changed

+227
-231
lines changed

app/mailers/notifier.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,6 @@ def deliver_bundle
246246
bundle = PurchasedBundle.create! do |bundle|
247247
bundle.email = User.active.order("Random()").first.email
248248
bundle.codeschool_coupon = 'http://www.codeschool.com/vouchers/ef4f215468?secret=1dd6bd0315'
249-
bundle.peepcode_coupon = 'coderwall_933ea65cf6a8'
250249
bundle.recipes_coupon = 'CWJSBUNDLE'
251250
bundle.total_amount = 6400
252251
bundle.token = PurchasedBundle.create_test_token

app/models/purchased_bundle.rb

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,6 @@ def send_reciept!
5959
transaction do
6060
coupon = AvailableCoupon.first
6161
update_attributes!(
62-
peepcode_coupon: coupon.peepcode_coupon,
6362
codeschool_coupon: coupon.codeschool_coupon,
6463
recipes_coupon: coupon.recipes_coupon
6564
)
@@ -109,9 +108,8 @@ def card_charged
109108

110109
def split_purchase
111110
self.total_amount = 0 if self.total_amount.nil?
112-
self.peepcode_proceeds = ((total_amount - fee) * 0.13)
113111
self.codeschool_proceeds = ((total_amount - fee) * 0.60)
114112
self.charity_proceeds = ((total_amount - fee) * 0.20)
115-
self.coderwall_proceeds = total_amount - (peepcode_proceeds + codeschool_proceeds + charity_proceeds + fee)
113+
self.coderwall_proceeds = total_amount - (codeschool_proceeds + charity_proceeds + fee)
116114
end
117115
end

0 commit comments

Comments
 (0)