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 over 7 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...
RE: overwrite a constant - Added by Carlos Diego Bustamante Barboza over 7 years ago
hey thanks for the explication, yes i see that when i debuging my code. My solution is make a new code and no overwrite soon i upload my plugin thanks