From: zdennis Date: 2006-04-11T01:03:44+09:00 Subject: Re: Adding in class attribute with a Module -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Kris wrote: > Its very useful, the trouble is the models can't see the session (for > good reasons) but they need information from the controller level, such > as current logged in user, and passing it every time you create a model > is a pain and can easily be forgottern. Using cattr_accessor you can set > and forget. It is useful, the question is, is it useful for ruby to have this functionality in the core language. > Is this maybe a question better asked on the Rails forum? There is a rails-aspect and a ruby-aspect to what you brought up. For the type of question you will probably get answers from either list, although the one from the ruby list will be more ruby-specific, whereas the answer from the rails list may be more rails framework related. Zach -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFEOoLrMyx0fW1d8G0RAqZMAJ9Z/21k9aEjoh8wS11UwA3gamHBxgCfQiSW mKcZt5yT89hRW1xuIbV9jZU= =iBTi -----END PGP SIGNATURE-----