[Rails-core] Re: Another take on ActiveModel

2008-09-10 Thread August Lilleaas
Personally, I can't recall ever having needed a stand-alone DB adapter library, so I can't be of much help there. On Sep 10, 7:28 pm, 7rans <[EMAIL PROTECTED]> wrote: > On Sep 10, 1:53 am, August Lilleaas <[EMAIL PROTECTED]> wrote: > > > Greetings, > > > At RailsConf Europe 2008, I spent some tim

[Rails-core] Re: time_select and config.time_zone, handling cases when a timezone isn't applicable

2008-09-10 Thread John Trupiano
Excellent Geoff! That does the trick (and is cleaner than the massaging I was doing at the controller level in the meantime). I figured it would be a very straightforward adjustment in rails (the long-term fix, that is). -John On Sep 10, 6:50 pm, Geoff B <[EMAIL PROTECTED]> wrote: > Hi John, >

[Rails-core] Re: time_select and config.time_zone, handling cases when a timezone isn't applicable

2008-09-10 Thread Geoff B
Hi John, We figured out the issue was the combination of time-only columns and multiparameter attributes -- AR::Base#instantiate_time_object is currently doing a time zone conversion for time-only columns, but it shouldn't be. I'll try to pull in a fix for this in soon (should be simple, we just

[Rails-core] Re: why revert "adding accessible option to allow for allowing mass assignments"?

2008-09-10 Thread Zack Chandler
Pratik, Got it - I figured it was prep time for 2.2... I for one would like to see this reapplied and iterated on after 2.2 is tagged as it really helps out with multi-model forms. Best, Zack On Wed, Sep 10, 2008 at 12:50 PM, Pratik <[EMAIL PROTECTED]> wrote: > Hey Zach, > > The :accessible ch

[Rails-core] Re: why revert "adding accessible option to allow for allowing mass assignments"?

2008-09-10 Thread Pratik
Hey Zach, The :accessible change was not complete and still needs some more work to be usable. There was no conclusion about how we want updates to work - http://groups.google.com/group/rubyonrails-core/browse_thread/thread/4049b4b313fa8be2/730dbd7ad5e7ccc0 As 2.2 is very close, I didn't want any

[Rails-core] why revert "adding accessible option to allow for allowing mass assignments"?

2008-09-10 Thread Zack Chandler
I noticed that Pratik just reverted the ":accessible option to allow for allowing mass assignments" with the following commit: http://github.com/rails/rails/commit/9994f0d90248db7d7eae36f0b597a15e8a427612 What was the reason behind this reversion? I've been using the feature and it works great f

[Rails-core] Re: time_select and config.time_zone, handling cases when a timezone isn't applicable

2008-09-10 Thread John Trupiano
Hey Geoff, Liam, I'm running into the same issue, and it's very simple to create an example. 1) $> rails time_select_problem 2) $> cd time_select_problem 3) $> ruby script/generate scaffold stores name:string opens:time 4) Edit config/environment.rb, set config.time_zone = 'Eastern Time (US & Ca

[Rails-core] Re: Another take on ActiveModel

2008-09-10 Thread 7rans
On Sep 10, 1:53 am, August Lilleaas <[EMAIL PROTECTED]> wrote: > Greetings, > > At RailsConf Europe 2008, I spent some time playing with my own > implementation of ActiveModel. Most of the validations stuff has been > implemented now, so I think it's ready to be shared with the > community. > >

[Rails-core] Re: Another take on ActiveModel

2008-09-10 Thread August Lilleaas
Decided to remove ActiveModel::Callbacks alltogether. What exactly should it do, anyway? For the purpose of making validations work, I'd say it's overkill. Perhaps there's something I haven't though of. On Sep 10, 9:58 am, August Lilleaas <[EMAIL PROTECTED]> wrote: > Regarding the callback librar

[Rails-core] Re: AR Result Set plugin

2008-09-10 Thread Frederick Cheung
On 10 Sep 2008, at 11:58, Hongli Lai wrote: > > On Sep 10, 12:57 pm, Hongli Lai <[EMAIL PROTECTED]> wrote: >> On Sep 9, 7:53 pm, Frederick Cheung <[EMAIL PROTECTED]> >> wrote: >> >>> Just to follow up on this (not that I've had time to touch this >>> since >>> last week), what do people think

[Rails-core] Re: AR Result Set plugin

2008-09-10 Thread Hongli Lai
On Sep 10, 12:57 pm, Hongli Lai <[EMAIL PROTECTED]> wrote: > On Sep 9, 7:53 pm, Frederick Cheung <[EMAIL PROTECTED]> > wrote: > > > Just to follow up on this (not that I've had time to touch this since   > > last week), what do people think we could do with this that would be   > > useful ? > > >

[Rails-core] Re: AR Result Set plugin

2008-09-10 Thread Hongli Lai
On Sep 9, 7:53 pm, Frederick Cheung <[EMAIL PROTECTED]> wrote: > Just to follow up on this (not that I've had time to touch this since   > last week), what do people think we could do with this that would be   > useful ? > > Fred It might be useful for lazy loading from the database inside cached

[Rails-core] Re: Another take on ActiveModel

2008-09-10 Thread August Lilleaas
Regarding the callback library in ActiveModel. I just started working on that as a stand-alone implementation of callback functionality. But I guess using ActiveSupport::Callbacks makes sense here? On Sep 10, 7:53 am, August Lilleaas <[EMAIL PROTECTED]> wrote: > Greetings, > > At RailsConf Europe