Class Product
In: app/models/product.rb
Parent: ActiveRecord::Base

Methods

Public Class methods

[Source]

    # File app/models/product.rb, line 19
19:   def self.find_producten_voor_verkoop
20:       find(:all, :order => 'titel')
21:   end

Public Instance methods

[Source]

    # File app/models/product.rb, line 15
15:   def prijs_moet_positief_zijn
16:     errors.add(:prijs, 'moet positief zijn!') if prijs < 0
17:   end

[Validate]