On Tue, May 23, 2006 at 09:00:50AM -0700, Kevin Clark wrote:
> Could it be a plugin?
> 
> On 5/23/06, Francois Beausoleil <[EMAIL PROTECTED]> wrote:
> >http://dev.rubyonrails.org/ticket/5167
> >
> >Small patch that adds a new generator for observers.  I never remember
> >what to inherit from when I want a new observer.  That solves the
> >problem nicely and simply.
> >
> >Didn't put a lot of options in this.  A further patch could optionally
> >generate the proper after_update, after_create, etc. depending on what
> >the user asked for on the command line.  Not sure this is really
> >required though.

I like "Could it be a plugin?" as the default answer to new feature patches.
In this case though, I see this as a good fit for inclusion. Observers have
been a part of the core since the beginning and aren't going anywhere. The
generator's implementation is straight forward and simple and there isn't
much reason for anyone to write an observer class skeleton by hand.

Applied in changeset 4364 (and 4365...oops).

marcel
-- 
Marcel Molina Jr. <[EMAIL PROTECTED]>
_______________________________________________
Rails-core mailing list
Rails-core@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails-core

Reply via email to