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 Men

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

2013-02-27 Thread Jarrett Meyer
. >> >> Employee.all vs. Employee.all.to_a is not that big of a deal. And you should >> expect breaking changes with a major version number. That's why your code is >> covered by tests, right? >> >> Signed, >> An-ex-.NET-developer-turned-Rubyist >> &g

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

2013-02-27 Thread Jarrett Meyer
An-ex-.NET-developer-turned-Rubyist -- 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 wrote: > That's better than nothing, but #

[Rails-core] Deprecate the delete method

2013-02-06 Thread Jarrett Meyer
byonrails-core+unsubscr...@googlegroups.com. > To post to this group, send email to rubyonrails-core@googlegroups.com. > Visit this group at http://groups.google.com/** > group/rubyonrails-core?hl=en<http://groups.google.com/group/rubyonrails-core?hl=en> > . > For more options, visit

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...@g

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

2012-07-09 Thread Jarrett Meyer
0 [""].size #=> 1 [nil].size #=> 1 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>

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

[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.co