Sha256: c0af5be02ad42596305ec1e9a3cc62b2d83dc2ef310d92f0fcbe63067f523fc6
Contents?: true
Size: 373 Bytes
Versions: 5
Compression:
Stored size: 373 Bytes
Contents
class C80Catoffers::Crow < ActiveRecord::Base belongs_to :csample belongs_to :offer scope :def_order, -> {order(:ord => :asc)} def offer_price_integer res = 0 if self.offer.present? res = self.offer.price_integer end res end def offer_title res = '' if self.offer.present? res = self.offer.title end res end end
Version data entries
5 entries across 5 versions & 1 rubygems