Displaying 1 result from an estimated 1 matches for "voornaam2".
Did you mean:
voornaam
2008 Jan 23
1
Making Parents object attributes available
...,
I have a class Person
class Persoon < ActiveRecord::Base
set_table_name "Persoon"
set_primary_key "p_persoon"
has_many :adres, :class_name => "Adres"
composed_of :name, :class_name => Name, :mapping => [ [:naam,:naam],
[:voornaam,:voornaam], [:voornaam2,:voornaam2],
[:persnickname,:persnickname], [:perssortname,:perssortname] ]
def somemethod(string)
...
end
end
and a child class Student (which is a person)
class Student < Person
set_table_name "Student"
set_primary_key "p_persoon"
has_many :contract, :for...