mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-11 23:17:48 +00:00
Remove unused method
This commit is contained in:
@@ -24,10 +24,6 @@ module Spree
|
||||
amount
|
||||
end
|
||||
|
||||
def price_changed?
|
||||
amount_changed?
|
||||
end
|
||||
|
||||
def price=(price)
|
||||
self[:amount] = parse_price(price)
|
||||
end
|
||||
|
||||
@@ -49,7 +49,7 @@ module Spree
|
||||
has_many :prices,
|
||||
class_name: 'Spree::Price',
|
||||
dependent: :destroy
|
||||
delegate :display_price, :display_amount, :price, :price_changed?, :price=,
|
||||
delegate :display_price, :display_amount, :price, :price=,
|
||||
:currency, :currency=,
|
||||
to: :find_or_build_default_price
|
||||
|
||||
|
||||
Reference in New Issue
Block a user