How do I write relations for models with namespace?
if I have Class Foo::Bar and Class Employee and I want to have habtm between them would I write
Class Foo::Bar
has_and_belongs_to_many :employees
end
and in
Class Employee
has_and_belongs_to_many ???? # <- how do I write this part?
end
You could do something like:
And then you should be able to access all the
Foo::Barobjects on anEmployeeinstance withemployee.foo_bars