Fixed issues with Rails 4 and attr_accessible