Originally posted on Trac by gaspard Original Trac Ticket
Description
It should be done in attributes=. This could avoid all the hacky
set name from version during 'before_validation'.
Trac Attachments
Trac Comments
2007-09-17 13:32:27 changed by gaspard
(In [746]) Less confusion between template modes,
klass and format and the template's actual name. Fixes #75 Confusion between template name and mode/format (2.5) Moved
all attribute translation (dates, zips) into the Node class. When a
class needs to alter/add attributes it is now done in
"attributes=". Fixes #83 attribute filtering is a mess (2) [CAUTION] This commit includes a migration
that alters version text as the code for template inclusion has
changed.
hours set to 2.0.
status changed from new to closed.
resolution set to fixed.
totalhours changed from 0.0 to 2.0.
(In [746]) Less confusion between template modes,
klass and format and the template's actual name. Fixes #75 Confusion between template name and mode/format (2.5) Moved
all attribute translation (dates, zips) into the Node class. When a
class needs to alter/add attributes it is now done in
"attributes=". Fixes #83 attribute filtering is a mess (2) [CAUTION] This commit includes a migration
that alters version text as the code for template inclusion has
changed.
hours set to 2.0.
status changed from new to closed.
resolution set to fixed.
totalhours changed from 0.0 to 2.0.
2007-09-19 17:37:19 changed by gaspard
(In [748]) Could not create template through
DocumentController?. Refs #83 attribute filtering is a mess.