ActiveRecord reflection depend error detection and translation support