Re: [Rails-core] Being strict on differentiating between IEC prefixes and SI prefixes.

2012-10-02 Thread Geoff Harcourt
So very sorry about that misdirected reply. On Oct 2, 2012, at 9:45 PM, "Andrés Mejía" wrote: Thanks Geoff, whatever that means. On Tue, Oct 2, 2012 at 3:19 PM, Geoff Harcourt wrote: > OK, pushed. I can't push my own database data up, so I'll get four > questions up there for you. > > -Geoff >

Re: [Rails-core] Being strict on differentiating between IEC prefixes and SI prefixes.

2012-10-02 Thread Andrés Mejía
Thanks Geoff, whatever that means. On Tue, Oct 2, 2012 at 3:19 PM, Geoff Harcourt wrote: > OK, pushed. I can't push my own database data up, so I'll get four > questions up there for you. > > -Geoff > > -- > Geoff Harcourt > > On Tuesday, October 2, 2012 at 4:07 PM, dburry wrote: > > One of the g

Re: [Rails-core] Approximate release timeline for Rails 4?

2012-10-02 Thread Ryan Bigg
Any Rails release timeline announcements are generally wrong, anyway. On Monday, 1 October 2012 at 9:49 AM, Jeremy Walker wrote: > > > On 1 October 2012 00:43, Steve Klabnik (mailto:st...@steveklabnik.com)> wrote: > > Soonish. There are some things that are blocking the release, but > > they

Re: [Rails-core] Being strict on differentiating between IEC prefixes and SI prefixes.

2012-10-02 Thread Geoff Harcourt
OK, pushed. I can't push my own database data up, so I'll get four questions up there for you. -Geoff -- Geoff Harcourt On Tuesday, October 2, 2012 at 4:07 PM, dburry wrote: > One of the great things I like about rails is not always being tied to full > backwards compatibility causing a

Re: [Rails-core] Being strict on differentiating between IEC prefixes and SI prefixes.

2012-10-02 Thread dburry
One of the great things I like about rails is not always being tied to full backwards compatibility causing a more and more bloated core every major release. In my mind a plugin that puts everything back would solve that issue, for those who need it. That other objection still gives me pause t

Re: [Rails-core] case insensitive inclusion validation

2012-10-02 Thread dburry
There's also the little issue of the world not all using only English. A full Unicode-aware case insensitivity is even more inefficient than a regular ascii-only one... but in practice might be required in just as many cases as an ascii one... Dave On Tuesday, October 2, 2012 12:15:25 PM UTC-

Re: [Rails-core] case insensitive inclusion validation

2012-10-02 Thread Godfrey Chan
Is there a use case where you wouldn't just do something like... validates :numbers, inclusion: { in: ['one', 'two'] } def numbers read_attribute(:numbers).try(:downcase) end i.e. Is there a particular reason why you still want the values to be stored/presented with potentially different case

Re: [Rails-core] Being strict on differentiating between IEC prefixes and SI prefixes.

2012-10-02 Thread Pedro Nascimento
2.kilobytes(prefix: :si) would make sense to be 2000, if anyone's interested in doing so. -1 on everything else. On Tue, Oct 2, 2012 at 2:29 PM, Allen Madsen wrote: > This pull request poses two problems in my mind. The changes are not > backwards compatible, which could lead to some serious head

Re: [Rails-core] Being strict on differentiating between IEC prefixes and SI prefixes.

2012-10-02 Thread Allen Madsen
This pull request poses two problems in my mind. The changes are not backwards compatible, which could lead to some serious head scratching. Secondly, even though they're a standard now, they're not commonly used, which leads to more head scrathing. Allen Madsen http://www.allenmadsen.com On Tue

[Rails-core] PG adapter pull request for supporting range types

2012-10-02 Thread Alexander Grebennik
Can someone review pull #7345 (and related #7350)? Is those features allowed to be in rails or not? -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-cor

Re: [Rails-core] Being strict on differentiating between IEC prefixes and SI prefixes.

2012-10-02 Thread Andrés Mejía
I'm -1 for this. On Tue, Oct 2, 2012 at 4:53 AM, Jarl Friis wrote: > One of the greatest things about rails is that it is so > standards-compliant, > no other framework that I have seen have complied to the > HTTP standard (think REST) in such a degree that Rails does. Kudos to > you all for tha

[Rails-core] Re: active_model_serializers, more than one level deep of associations, specifying serializers per association

2012-10-02 Thread Gary Weaver
Aha, nevermind, there is a way to do it that I missed, e.g.: has_one :home_address, :serializer => SomeAddressSerializer so that a serializer can be used that in turn uses serializers, etc. as required for that specific view. On Monday, October 1, 2012 5:22:10 PM UTC-4, Gary Weaver wrote: > >

Re: [Rails-core] attr_accessible with an :if option

2012-10-02 Thread Godfrey Chan
On 2012-10-02, at 6:46 AM, svoop wrote: > And maybe the gem even makes it into Rails 4. As Steve said, it already did :P -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To post to this group, send email to rubyonrails-core@googlegroups

Re: [Rails-core] attr_accessible with an :if option

2012-10-02 Thread svoop
> It feels wrong to use validations for this. Then again, if Rails 4 moves > away from attr_accessible towards strong_parameters (which essentially > shifts mass assignment protection from the model to the controller), > validations will soon be the only way to protect attributes in the model.

[Rails-core] case insensitive inclusion validation

2012-10-02 Thread Matt Huggins
I'm not voting for or against it, but if this does become a feature, the option name should probably be :case_insensitive so as to match the uniqueness validation option. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To view this disc

[Rails-core] Being strict on differentiating between IEC prefixes and SI prefixes.

2012-10-02 Thread Jarl Friis
One of the greatest things about rails is that it is so standards-compliant, no other framework that I have seen have complied to the HTTP standard (think REST) in such a degree that Rails does. Kudos to you all for that. I think we (Rails community) should follow the line of standards compliance

Re: [Rails-core] Rails 3.2/4 force prepared statements to be used

2012-10-02 Thread Steve Klabnik
This is a mailing list for discussion about development of the rails framework itself. For questions about using rails, please post to https://groups.google.com/forum/?fromgroups#!forum/rubyonrails-talk -- You received this message because you are subscribed to the Google Groups "Ruby on Rails:

[Rails-core] Rails 3.2/4 force prepared statements to be used

2012-10-02 Thread Alexander Grebennik
I've already asked this on StackOverflow with no luck on answer - http://stackoverflow.com/questions/12617237/rails-3-2-force-prepared-statements Simplified case: Hotel.find(1) - executes using prepared statement SELECT "hotels".* FROM "hotels" WHERE "hotels"."id" = $1 LIMIT 1 [["id", 1]] Hotel

[Rails-core] case insensitive inclusion validation

2012-10-02 Thread Nihad Abbasov
I want to add case_sensitive option to inclusion validation. This will allow to do: validates :numbers, :inclusion => { :in => %(One Two), :case_sensitive => false } Does it make a sense? Thanks. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: C