[Nitro] [PATCH] Bugfix in __force_#{attr}

George Moschovitis george.moschovitis at gmail.com
Mon Sep 10 07:50:14 EDT 2007


>
>
> The new version correctly handles %w(on off true false), true, false and
> converts anything else to boolean according to Ruby's rules (everything
> is true except false and nil).


thanks.


I also noticed that the keys in the call to assign_attributes must be
> strings, this right here surprisingly doesn't work:
>
> model_instance.assign_attributes(:title => 'Programming Nitro',
> :expensive => true)
>
> Any thoughts? Should I change this so it can use both?


sounds reasonable. Remember, assign_attributes uses a lower level facets
method (assign_with) so you may have to cooperate with Tom (trans) on this.

-g.






thank you all,
> (ab)
>
>
> --
> Arne Brasseur
> http://www.arnebrasseur.net
> arne at arnebrasseur.net
>
>
> _______________________________________________
> Nitro-general mailing list
> Nitro-general at rubyforge.org
> http://rubyforge.org/mailman/listinfo/nitro-general
>
>


-- 
http://www.me.gr
http://phidz.com
http://blog.gmosx.com
http://cull.gr
http://www.joy.gr
http://nitroproject.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/nitro-general/attachments/20070910/e1caf294/attachment.html 


More information about the Nitro-general mailing list