impress/app/models/nc_mall_record.rb

8 lines
117 B
Ruby
Raw Permalink Normal View History

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