Hi ! 2005/12/7, Duane Johnson <[EMAIL PROTECTED]>: > On Dec 7, 2005, at 2:23 PM, Francois Beausoleil wrote: > > So, we do in fact have to gobble up the class methods. Maybe this is > > an instance of Ruby being too helpful ? > > class RubyBeingTooHelpful; end > instance = RubyBeingTooHelpful.new
Eh eh, nice one :) Seriously though, what should we do ? Leaving off class methods seems like the easiest method so far. Will we be bitten later on ? That's the question we have to ask. Dave did say: > We sidestep the issue. Reserved words are the reason why you can do > attribute access with brackets, ala: > > model[:attr] Of course that can be done. In that case, should auto read/write methods be forbidden for such columns ? In the end, we're trying to keep the principle of least surprise active. What's less suprising: instance.transaction = Transaction.new # NoMethodError - OR - instance.transaction do bla bla end # nothing committed - no unit tests = bug not exposed Bye ! -- François Beausoleil http://blog.teksol.info/
_______________________________________________ Rails-core mailing list Rails-core@lists.rubyonrails.org http://lists.rubyonrails.org/mailman/listinfo/rails-core