mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-27 01:43:22 +00:00
remove to_f on decimals
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user