module SubjModels module ValuesChecker def check_string_for_int(value) value.to_i == 0 ? value : value.to_i end end end