app/models/unidom/price/concerns/as_pricer.rb in unidom-price-1.2 vs app/models/unidom/price/concerns/as_pricer.rb in unidom-price-1.3
- old
+ new
@@ -10,12 +10,12 @@
pricing = pricings.priced_is(it).valid_at(now: at).alive.first
pricing.soft_destroy if pricing.present?
pricings.create! priced: it, amount: amount, opened_at: at
end
- #def price?(it, at: Time.now)
- # pricings.priced_is(it).valid_at(now: at).alive.exists?
- #end
+ def price?(it, at: Time.now)
+ pricings.priced_is(it).valid_at(now: at).alive.exists?
+ end
end
module ClassMethods
end