Re: [Rails-core] Adding #with to ActiveRecord::Relation

2013-05-13 Thread Jarrett Meyer
Much like textacular (https://github.com/textacular/textacular), make it a gem. -- Jarrett Meyer Email: jarrettme...@gmail.com Web: JarrettMeyer.com http://jarrettmeyer.com Twitter: @jarrettmeyer http://twitter.com/jarrettmeyer On Sat, May 11, 2013 at 11:08 PM, Rafael Mendonça França

Re: [Rails-core] #all changes in 4.0

2013-02-27 Thread Jarrett Meyer
-- Jarrett Meyer Email: jarrettme...@gmail.com Web: JarrettMeyer.com http://jarrettmeyer.com Twitter: @jarrettmeyer http://twitter.com/jarrettmeyer On Wed, Feb 27, 2013 at 6:09 PM, Will Bryant will.bry...@gmail.com wrote: That's better than nothing, but #all returns a relation now, which is half

Re: [Rails-core] #all changes in 4.0

2013-02-27 Thread Jarrett Meyer
, Jarrett Meyer jarrettme...@gmail.com wrote: Most other enterprise-y languages (esp. Java+Hibernate, .NET+NHibernate, .NET+Entity Framework) reinforce deferred execution of queries: the query is not executed until it is enumerated. This is now the exact same behavior as those platforms

Re: [Rails-core] In-memory uniqueness validator

2012-08-05 Thread Jarrett Meyer
always push to turn hard problems into easy problems. -- Jarrett Meyer Email: jarrettme...@gmail.com Web: JarrettMeyer.com http://jarrettmeyer.com Twitter: @jarrettmeyer http://twitter.com/jarrettmeyer On Sun, Aug 5, 2012 at 11:42 AM, Gabriel Sobrinho gabriel.sobri...@gmail.com wrote: Rodrigo

Re: [Rails-core] Defining #blank for Array.

2012-07-09 Thread Jarrett Meyer
An array with a single item is no longer empty, even if the item itself is empty. -- Jarrett Meyer Email: jarrettme...@gmail.com Web: JarrettMeyer.com http://jarrettmeyer.com Twitter: @jarrettmeyer http://twitter.com/jarrettmeyer On Mon, Jul 9, 2012 at 10:23 AM, Michael Boutros michael.bout

Re: [Rails-core] Attribute query methods and semantics

2012-05-31 Thread Jarrett Meyer
+1 to Richard. Keep ? for booleans, get rid of the others and use .blank? and .present? as needed. -- Jarrett Meyer Email: jarrettme...@gmail.com Web: JarrettMeyer.com http://jarrettmeyer.com Twitter: @jarrettmeyer http://twitter.com/jarrettmeyer On Thu, May 31, 2012 at 9:45 AM, Richard

[Rails-core] Patch submitted (#6158)

2010-12-13 Thread Jarrett Meyer
I've submitted a patch for ticket #6158. Count should always return an integer. On decimal columns, the value was being type cast to match the column type. This makes sense for sum() and average() operations, but not for count() operations. -- Jarrett Meyer Email: jarrettme...@gmail.com Web