overwrite a constant
hi every buddy i try to ovewrite a constan in the class issue_relation.rb (type) add more option but i don't now why the validates_inclusion_of don't read my constant that i create in my patch and always validate the constant of this class.
To add when list the related issue in this point does read my constant.
RE: overwrite a constant - Added by Jean-Philippe Lang almost 13 years ago
Because arguments of validates_inclusion_of are evaluated when the class is loaded. The constant is not overwritten yet. That said, you should be very carefull when doing such changes...