Saturday, November 21, 2009

[Rails] Re: calling the parent class's method

you have to use super to call the parent class's method

On Nov 21, 6:58 am, RVince <rvinc...@hotmail.com> wrote:
> If I have a method called delete in a class which a class I am
> creating is descended from, and I call the delete method in the child,
> how do I have the child call the parent class's  delete near the end
> of the child class's delete method? Thanks

--

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@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate