Sha256: baef1f02b498de52cb2e49dbbaca4289b39ed2f503fcfc7dd65ec455c18b5fbe
Contents?: true
Size: 460 Bytes
Versions: 4
Compression:
Stored size: 460 Bytes
Contents
class Subscription < MLS::Model self.inheritance_column = nil has_and_belongs_to_many :accounts has_many :invoices has_many :services belongs_to :organization belongs_to :billing_contact, class_name: "Account" belongs_to :credit_card has_and_belongs_to_many :invoice_recipients, class_name: 'EmailAddress' accepts_nested_attributes_for :services def cost read_attribute(:cost) / 100.0 if read_attribute(:cost) end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
mls-1.9.0 | lib/mls/models/subscription.rb |
mls-1.8.0 | lib/mls/models/subscription.rb |
mls-1.7.0 | lib/mls/models/subscription.rb |
mls-1.6.0 | lib/mls/models/subscription.rb |