2012-05-29 13:40:25 +01:00
|
|
|
# -*- encoding : utf-8 -*-
|
|
|
|
class Platforms::MaintainersController < ApplicationController
|
2012-08-24 20:45:58 +01:00
|
|
|
before_filter :authenticate_user!
|
2012-07-19 17:25:04 +01:00
|
|
|
skip_before_filter :authenticate_user!, :only => [:index] if APP_CONFIG['anonymous_access']
|
2012-08-24 20:45:58 +01:00
|
|
|
load_and_authorize_resource :platform
|
2012-05-31 12:43:40 +01:00
|
|
|
|
2012-05-29 13:40:25 +01:00
|
|
|
def index
|
2012-11-30 17:15:37 +00:00
|
|
|
@maintainers = BuildList::Package.includes(:project)
|
|
|
|
.actual.by_platform(@platform)
|
|
|
|
.like_name(params[:q])
|
|
|
|
.paginate(:page => params[:page])
|
2012-05-29 13:40:25 +01:00
|
|
|
end
|
|
|
|
end
|