Fixed the attr_accessible issue with Rails 4.0