Refactor project creation. Added logout link to profile page
This commit is contained in:
parent
c7c1a97c2f
commit
232d61d598
19 changed files with 126 additions and 116 deletions
|
@ -29,7 +29,7 @@ class Admin::ProjectsController < AdminController
|
|||
end
|
||||
|
||||
def update
|
||||
status = ProjectUpdateContext.new(project, current_user, params).execute(:admin)
|
||||
status = Projects::UpdateContext.new(project, current_user, params).execute(:admin)
|
||||
|
||||
if status
|
||||
redirect_to [:admin, @project], notice: 'Project was successfully updated.'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue