fix problems with strong attributes for rails 4