I have few modules named "Source" and in all modules i have same constants and i keep getting this warning message.below is how i fix this
Module Source
Source.constants.each do |c|
remove_const(c.to_sym)
end
#########################
declare all your constants here
#########################
end
No comments:
Post a Comment