made dirty tracking work for rails 4.2