|
Subject: Re: #3005 - Prevent duplicate names Newsgroups: gmane.comp.lang.ruby.rails.core Date: 2005-12-09 14:31:15 GMT (2 years, 37 weeks, 4 days, 5 hours and 25 minutes ago) 2005/12/7, Francois Beausoleil <francois.beausoleil <at> gmail.com>: > 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 So, what do we do ? We could also take the status quo, and just add the patch as-is, meaning relationships would prevent reusing existing method names, but columns are not. Bye ! -- François Beausoleil http://blog.teksol.info/ _______________________________________________ Rails-core mailing list Rails-core <at> lists.rubyonrails.org http://lists.rubyonrails.org/mailman/listinfo/rails-core |
|
|