[Rubycocoa-devel 937] Re: patch for active_record.rb

Back to archive index

Eloy Duran eloy.****@gmail*****
Sun Jun 3 18:54:11 JST 2007


Hey Justin,

Thanks a lot!
The patch has been committed in revision 1808.

> Just a little info on the patch, this documents
> connect_to_sqlite_in_application_support.
> This also fixes a bug in rbSetValue_forKey.  If you didn't turn
> validates_immediately on and
> the value passed was nil, it would attempt to call to_ruby on nil.
> This just sets the key's value to
> nil.
>
> Finally, this allows you to specify a migration directory, but I
> wonder if this is the correct spot to do this or if
> we should just use an accessor on the module.

For now let's keep it as it is. Once we have connection methods for
other db's, like a method that takes a YAML file like in rails, then
it might indeed be better to move this into a accessor.

Eloy




More information about the Rubycocoa-devel mailing list
Back to archive index