hitsvilleusa / boolean_timestamp Goto Github PK
View Code? Open in Web Editor NEWTreat a datetime attribute like activated_at as a boolean in a form or elsewhere in your code like activated, activated?, activated=, activate!. These will set the timestamp appropriately.