Fix using context of Projects::UpdateContext (in admin section error, in public section - to next step if moving controlers)
This commit is contained in:
parent
1dd0feacc7
commit
4ce715a360
2 changed files with 3 additions and 3 deletions
|
@ -29,7 +29,7 @@ class Admin::ProjectsController < Admin::ApplicationController
|
|||
end
|
||||
|
||||
def update
|
||||
status = Projects::UpdateContext.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