impress/app/models/nc_mall_record.rb

8 lines
117 B
Ruby
Raw Normal View History

class NCMallRecord < ApplicationRecord
belongs_to :item
def current_price
discount_price || price
end
end