summaryrefslogtreecommitdiffstats
path: root/app/controllers/projects_controller.rb
diff options
context:
space:
mode:
authorJohan Sørensen <johan@johansorensen.com>2009-02-02 12:39:34 +0100
committerJohan Sørensen <johan@johansorensen.com>2009-04-22 12:55:23 +0200
commit8cfc73210a704201a8a63cb4d13af5208c4899c7 (patch)
tree3fb8b199a51cd08cf52667bef4049a3ce490a611 /app/controllers/projects_controller.rb
parenteebb6ad1732a9e6e3652dab030131cf8e1115172 (diff)
downloadgitorious-mainline-outdated-8cfc73210a704201a8a63cb4d13af5208c4899c7.zip
gitorious-mainline-outdated-8cfc73210a704201a8a63cb4d13af5208c4899c7.tar.gz
gitorious-mainline-outdated-8cfc73210a704201a8a63cb4d13af5208c4899c7.tar.bz2
Teach RepositoriesController and BreadcrumpsHelper that repositories can be
owned by either a Project, Group or User
Diffstat (limited to 'app/controllers/projects_controller.rb')
-rw-r--r--app/controllers/projects_controller.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/controllers/projects_controller.rb b/app/controllers/projects_controller.rb
index b8cf17b..cb8ee12 100644
--- a/app/controllers/projects_controller.rb
+++ b/app/controllers/projects_controller.rb
@@ -49,6 +49,7 @@ class ProjectsController < ApplicationController
def show
@project = Project.find_by_slug!(params[:id], :include => [:repositories])
+ @owner = @project
@events = @project.events.paginate(:all, :page => params[:page],
:order => "created_at desc", :include => [:user, :project])
@atom_auto_discovery_url = formatted_project_path(@project, :atom)