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

Methods

Public Class methods

[Source]

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

Public Instance methods

[Source]

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

[Validate]