[Rails-core] #3136 - Country codes in country_select

2005-12-08 Thread Jerrett Taylor
http://dev.rubyonrails.org/ticket/3136 Simple patch, but in following with others I figured I'd post a quick email to this list. All this does is adds functionality of country_select to allow people to build country select boxes that use country codes. It doesn't modify default behaviour, and the

[Rails-core] Why is AR::Base#sanitize_sql protected ?

2005-12-08 Thread Francois Beausoleil
Hi ! I have an instance where I'd like to use the automatic value quoting that sanitize conditions provides. Here's the SQL: SELECT COUNT(*) FROM tournaments INNER JOIN entries ON entries.tournament_id = tournaments.id INNER JOIN plays ON plays.entry_id = entries.id WHERE #{self.class.sanit

Re: [Rails-core] Why is AR::Base#sanitize_sql protected ?

2005-12-08 Thread Michael Koziarski
On 12/9/05, Francois Beausoleil <[EMAIL PROTECTED]> wrote: > Hi ! > > I have an instance where I'd like to use the automatic value quoting > that sanitize conditions provides. Here's the SQL: > SELECT COUNT(*) FROM tournaments > INNER JOIN entries ON entries.tournament_id = tournaments.id > IN

Re: [Rails-core] Why is AR::Base#sanitize_sql protected ?

2005-12-08 Thread Francois Beausoleil
2005/12/8, Michael Koziarski <[EMAIL PROTECTED]>: > On 12/9/05, Francois Beausoleil <[EMAIL PROTECTED]> wrote: > > Is there a particular reason why this is protected ? > > Usually methods are marked as protected when we don't want to make > them part of the public API. Every time someone calls ou