2012-05-04 23:53:45 +01:00
|
|
|
# -*- encoding : utf-8 -*-
|
2012-05-05 18:18:29 +01:00
|
|
|
class Advisories::AdvisoriesController < Advisories::BaseController
|
2012-05-04 23:53:45 +01:00
|
|
|
before_filter :authenticate_user!
|
|
|
|
before_filter :find_advisory, :only => [:show]
|
|
|
|
load_and_authorize_resource
|
|
|
|
|
|
|
|
def index
|
2012-05-05 18:18:29 +01:00
|
|
|
@advisories = @advisories.paginate(:page => params[:page])
|
2012-05-04 23:53:45 +01:00
|
|
|
end
|
|
|
|
|
|
|
|
def show
|
|
|
|
end
|
|
|
|
|
|
|
|
protected
|
|
|
|
|
|
|
|
def find_advisory
|
|
|
|
@advisory = Advisory.where(:advisory_id => params[:id]).limit(1).first if params[:id].present?
|
|
|
|
end
|
|
|
|
end
|