[fix] attr_accessible removed for compatibility with rails4