message index

This commit is contained in:
Eugene Korbut 2009-01-08 06:37:17 +10:00
parent 53fd7ad6ee
commit f5c796f76b
6 changed files with 70 additions and 69 deletions

View file

@ -1,9 +0,0 @@
require_association 'customer'
class MailPref < ActiveRecord::Base
belongs_to :customer
def MailPref.find_by_customer(customer_id)
find_first(["customer_id = #{customer_id}"])
end
end