On 10/3/05, Caleb Phillips <[EMAIL PROTECTED]> wrote: > In the current implementation, adding Minutes is impossible because the > validates_each will fail for the Events model, complaining that > starts_at and ends_at are in the past. > > I am thinking about a possible solution to this, but thought I would > post it to the list in hopes that someone else (with more free time > currently) might have a great solution. > > Ideally, this validation wouldn't run if the values were not changed...I > don't know if that is possible. > > Thoughts? > > -- > Caleb Phillips
As the one to blame for that validates_each code, I humbly apologize for what is obviously a bad hack. Might I recommend simply wrapping the validation in 'unless self.ended?' -- Lennon rcoder.net _______________________________________________ PdxRuby-dev mailing list [email protected] http://lists.pdxruby.org/mailman/listinfo/pdxruby-dev
