move Team_members controller into project (conflicts with team/members controller)
This commit is contained in:
parent
497f7ab5ba
commit
1dd0feacc7
11 changed files with 107 additions and 53 deletions
11
app/controllers/admin/projects/application_controller.rb
Normal file
11
app/controllers/admin/projects/application_controller.rb
Normal file
|
@ -0,0 +1,11 @@
|
|||
# Provides a base class for Admin controllers to subclass
|
||||
#
|
||||
# Automatically sets the layout and ensures an administrator is logged in
|
||||
class Admin::Projects::ApplicationController < Admin::ApplicationController
|
||||
|
||||
protected
|
||||
|
||||
def project
|
||||
@project ||= Project.find_by_path(params[:project_id])
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue