changed activesupport and activemodel  to rails 4