Tomash
Not a member
Tomash's latest activity
Tuesday, September 15 2009
-
Tomash created the ticket at 11:01 AMSince 2.3.3 Rails supports both :foreign_key and :primary_key for belongs_to association.
Using both (or only :primary_key) works great for simple instance.owne...
Sunday, August 10 2008
-
Tomash commented at 4:32 PMI know, I know. We're using INT columnt because of that and convert numbers on-the-fly by overloading amount and amount= methods in our models. But I've just re...
Tuesday, July 08 2008
-
Tomash commented at 8:39 AMTried it with a clean app and... damn I'm dumb -- the bug also doesn't occur.
I've tracked down the bug to have its root in validates_date_time plugin which d...
Monday, July 07 2008
-
Tomash commented at 3:37 PMUpdate: 8.95 is also a "magical number" inside ActiveRecord, i.e. balance=8.95 sets balance field to 894. Other numbers "around" seem OK.
>> a.balance=(8.95) ... -
Tomash created the ticket at 3:10 PMWhile implementing storage of price/cost/balance in cents I've stumbled upon one nasty bug. Consider the following code:
class Account < ActiveRecord::Base d...
-
Tomash created the ticket at 3:20 PMI don't know how Rails create accessors based on DBs column type, but accessors for SQL datetime time act weird.
The problem: assigning string (for example fr...