rosa-build/app/controllers/api/v1/maintainers_controller.rb

12 lines
460 B
Ruby
Raw Normal View History

2012-11-26 11:32:23 +00:00
class Api::V1::MaintainersController < Api::V1::BaseController
before_filter :authenticate_user! unless APP_CONFIG['anonymous_access']
2012-11-28 06:04:40 +00:00
load_and_authorize_resource :platform
2012-11-26 11:32:23 +00:00
def index
2012-11-30 17:15:37 +00:00
@maintainers = BuildList::Package.includes(:project)
.actual.by_platform(@platform)
.like_name(params[:package_name])
2012-11-30 17:15:37 +00:00
.paginate(paginate_params)
2012-11-26 11:32:23 +00:00
end
end