Fix default_scope usage to support Active Record 4