On Oct 22, 1:58 am, Chris Bloom <[EMAIL PROTECTED]>
wrote:
> Frederick Cheung wrote:
>
> > @status needs to be an association proxy, not the raw ProjectStatus
> > object. easiest way out is problably to alias_method the old status=
> > method so that you can call it easily from your status= method.
>
> > Fred
>
> Doesn't alias_method and alias_method_chain only work from within a
> module? This is in an ActiveRecord class.
Classes are modules (in that Class is a subclass of Module) and there
is nothing special about ActiveRecord classes in that respect.
Fred
> --
> Posted viahttp://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 [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---