This project is archived and is in readonly mode.
Having column named 'transaction' in a model leads to weird behavior
-
Denis
Some kind soul in #rubyonrails pointed out that there is a transaction method, courtesy of ActiveRecord::Transactions. Still, it would be nice if ActiveRecord could somehow warn us we're doing something stupid...
-
Frederick Cheung
Associations and columns boil down to the same thing since both generate methods with the same name as the association/column.
ActiveRecord already has a a thing to check for 'dangerous' column names, not sure why it didn't do anything in this case.
-
Frederick Cheung
- State changed from new to resolved
Should be fixed by #1551 Don't use the transaction instance method - overriding transaction shouldn't barf stuff anymore