change scoped to all since it is deprecated in rails 4