Deprecate code for Project. Use title and path
This commit is contained in:
parent
ab9d023651
commit
c50ec72b52
22 changed files with 79 additions and 83 deletions
|
@ -66,7 +66,7 @@ class ApplicationController < ActionController::Base
|
|||
id = params[:project_id] || params[:id]
|
||||
id = id.split("/") if id.include?("/")
|
||||
|
||||
@project ||= current_user.projects.find_by_code(id)
|
||||
@project ||= current_user.projects.find_by_path(id)
|
||||
@project || render_404
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue