summaryrefslogtreecommitdiffstats
path: root/app/controllers/projects_controller.rb
diff options
context:
space:
mode:
authorDavid A. Cuadrado <krawek@gmail.com>2008-04-16 22:50:09 -0500
committerDavid A. Cuadrado <krawek@gmail.com>2008-04-16 22:50:09 -0500
commit43a2a86b8c666131ed197ad6b3e41222574a6a57 (patch)
tree4c86eb1416d414238789d415e08cbda3dc662325 /app/controllers/projects_controller.rb
parent5c5947ba3940e472af0acde870470633eb84f178 (diff)
downloadgitorious-mainline-outdated-43a2a86b8c666131ed197ad6b3e41222574a6a57.zip
gitorious-mainline-outdated-43a2a86b8c666131ed197ad6b3e41222574a6a57.tar.gz
gitorious-mainline-outdated-43a2a86b8c666131ed197ad6b3e41222574a6a57.tar.bz2
Removed actions from the database
Signed-off-by: David A. Cuadrado <krawek@gmail.com>
Diffstat (limited to 'app/controllers/projects_controller.rb')
-rw-r--r--app/controllers/projects_controller.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/app/controllers/projects_controller.rb b/app/controllers/projects_controller.rb
index 697c01b..2b12466 100644
--- a/app/controllers/projects_controller.rb
+++ b/app/controllers/projects_controller.rb
@@ -46,7 +46,7 @@ class ProjectsController < ApplicationController
@project = Project.new(params[:project])
@project.user = current_user
if @project.save
- current_user.create_event("create project", @project)
+ current_user.create_event(Action::CREATE_PROJECT, @project)
redirect_to projects_path
else
render :action => 'new'
@@ -65,7 +65,7 @@ class ProjectsController < ApplicationController
end
@project.attributes = params[:project]
if @project.save
- current_user.create_event("update project", @project)
+ current_user.create_event(Action::UPDATE_PROJECT, @project)
redirect_to project_path(@project)
else
render :action => 'new'
@@ -81,7 +81,7 @@ class ProjectsController < ApplicationController
if @project.can_be_deleted_by?(current_user)
project_title = @project.title
@project.destroy
- current_user.create_event("delete project", nil, project_title)
+ current_user.create_event(Action::DELETE_PROJECT, nil, project_title)
else
flash[:error] = "You're not the owner of this project, or the project has clones"
end