2013-01-21 20:55:55 +01:00
|
|
|
# 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
|
2013-01-25 18:20:15 +01:00
|
|
|
@project ||= Project.find_with_namespace(params[:project_id])
|
2013-01-21 20:55:55 +01:00
|
|
|
end
|
|
|
|
end
|