Try to write the second class as
Class myClass < A1
end
Class A1 It is not in module ActiveRecord, is it?
On Mar 5, 2007, at 22:31, Alberto wrote:
>
> Hi:
>
> I would appreciate some hint. I can''t modify Class A1 but I can
> subclass
> it so I wonder how can I get access to its belongs_to and has_many i.e.
>
> Class A1 < ActiveRecord::Base
> belongs_to : B1
> belongs_to : C1
> has_many :D1
>
> end
>
> Class myClass < ActiveRecord::A1
> end
>
> The above doesn''t work.. Well it doesn''t do the insert ..
>
> MyClass and A1 table are exactly the same. Any suggestions?
>
> Regards.
>
> --
> Posted via http://www.ruby-forum.com/.
>
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---