app/models/group.rb
# Group public owned repositories and user membered in this Group
Group public owned repositories and user membered in this Group
Group public owned repositories and user membered in this Group
def owned_repositories_with_user(user)
    repos = owned_repositories.publics
    repos = repos.or(user.membered_repositories.where(user_id: id)) if user
    repos
  end
def owned_repositories_with_user ( user ) repos = owned_repositories . publics repos = repos . or ( user . membered_repositories . where ( user_id : id ) ) if user repos end
Group public owned repositories and user membered in this Group
Group public owned repositories and user membered in this Group
user
<not_specific>