Commit e735763f276b1950e89383b0ef40afc6dffeca32
1 parent
d1953a26
Exists in
master
and in
4 other branches
remove useless index method from projects controller
see edd81a79c5c2a61e565664cfa787185c4e19729b
Showing
1 changed file
with
0 additions
and
13 deletions
Show diff stats
app/controllers/projects_controller.rb
@@ -10,19 +10,6 @@ class ProjectsController < ApplicationController | @@ -10,19 +10,6 @@ class ProjectsController < ApplicationController | ||
10 | before_filter :authorize_admin_project!, :only => [:edit, :update, :destroy] | 10 | before_filter :authorize_admin_project!, :only => [:edit, :update, :destroy] |
11 | before_filter :require_non_empty_project, :only => [:blob, :tree, :graph] | 11 | before_filter :require_non_empty_project, :only => [:blob, :tree, :graph] |
12 | 12 | ||
13 | - def index | ||
14 | - @projects = current_user.projects.includes(:events).order("events.created_at DESC") | ||
15 | - @projects = @projects.page(params[:page]).per(40) | ||
16 | - @events = Event.where(:project_id => current_user.projects.map(&:id)).recent.limit(20) | ||
17 | - | ||
18 | - @last_push = current_user.recent_push | ||
19 | - | ||
20 | - respond_to do |format| | ||
21 | - format.html | ||
22 | - format.atom { render :layout => false } | ||
23 | - end | ||
24 | - end | ||
25 | - | ||
26 | def new | 13 | def new |
27 | @project = Project.new | 14 | @project = Project.new |
28 | end | 15 | end |