On 5/24/06, Rick Olson <[EMAIL PROTECTED]> wrote:
On 5/23/06, Hampton <[EMAIL PROTECTED]> wrote:
> Is there anything I can do to help this patch get vetted quickly and
> efficiently?
>
> -hampton.

Make a plugin and get folks to use it.  I'm not sold on this idea at
all, personally.

Here are three formats specifying the same query:

Animal.find_all_by_genus "canis"
Animal.find :all, :conditions => ["genus = ?", "canis"]
Animal.find :all, :conditions => {:genus => "canis"}

For me, the big advantage the last has is that the conditions are
abstracted away from SQL, and in a format that's easy to manipulate.
That said, I've got no strong desire to see it in rails core; I can
get this functionality through my plugin easily enough.

What would be nice though (for this and other plugins) would be some
refactoring of parts of rails to make it easier to write plugins.  If
'make a plugin' is going to be the default response to patches, then
making plugin creation easier has got to be a worthwhile goal.

Tom
_______________________________________________
Rails-core mailing list
Rails-core@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails-core

Reply via email to