class V1::CompanyLicensesController < ApplicationController
before_filter :load_company
def index
@licenses = @company.filter_licenses_using(search_filters)
end
private
def search_filters
{ status: LicenseStatus.find_match(params[:status]), township: params[:township] }
end
def load_company
@company = Company.find(params[:company_id])
end
end