Skip to content

Commit

Permalink
Fix alignment of def with end
Browse files Browse the repository at this point in the history
  • Loading branch information
jhawthorn committed Feb 16, 2016
1 parent f08d1bb commit 055499c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ def weighted_line_item_pre_tax_amount(inventory_unit)
end

def percentage_of_order_total(inventory_unit)
return 0.0 if inventory_unit.order.pre_tax_item_amount.zero?
weighted_line_item_pre_tax_amount(inventory_unit) / inventory_unit.order.pre_tax_item_amount
end
return 0.0 if inventory_unit.order.pre_tax_item_amount.zero?
weighted_line_item_pre_tax_amount(inventory_unit) / inventory_unit.order.pre_tax_item_amount
end

def percentage_of_line_item(inventory_unit)
1 / BigDecimal.new(inventory_unit.line_item.quantity)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
class ChangeSpreeReturnAuthorizationAmountPrecision < ActiveRecord::Migration
def change
def change
change_column :spree_return_authorizations, :amount, :decimal, precision: 10, scale: 2, default: 0.0, null: false
end
end

0 comments on commit 055499c

Please sign in to comment.