This project is archived and is in readonly mode.
Comments and changes to this ticket
-
Clemens Kofler July 7th, 2008 @ 03:21 PM
I think I've once seen this in a plugin and I didn't like it. Model.find makes it really clear what's going on (i.e. finding an object) where Model[] (IMO) doesn't. It's a mere shortcut where you give up clarity for brevity and I don't like it, sorry.
-
Josh Susser July 7th, 2008 @ 03:44 PM
Another -1 here. I've taken to using the [] for working with models in a certain way. Like the Setting class can interact with its settings using Setting[:foo] and Setting[:foo] = 17. I'd rather retain that flexibility than save a few characters and give up clarity.
-
Pratik July 7th, 2008 @ 04:54 PM
- State changed from new to wontfix
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
<h2 style="font-size: 14px">Tickets have moved to Github</h2>
The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>