f956759f8a
6e3c0a5d9a
1 2 3 4 5
6
7 8
9
class WholesaleProduct < ActiveRecord::Base after_initialize :set_prices def set_prices self.msrp = 2 * wholesale if wholesale end end