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