remove to_f on decimals

This commit is contained in:
Rafael Schouten
2014-09-17 13:19:34 +10:00
parent 6829636f11
commit ac3c3f9f6c

View File

@@ -3,11 +3,11 @@ class Api::VariantSerializer < ActiveModel::Serializer
:on_demand, :price, :fees, :price_with_fees
def price_with_fees
object.price_with_fees(options[:current_distributor], options[:current_order_cycle]).to_f
object.price_with_fees(options[:current_distributor], options[:current_order_cycle])
end
def price
object.price.to_f
object.price
end
def fees