pass default_scope a lambda for Rails 4 compability