app/controllers/sdg/goals_controller.rb
class SDG::GoalsController < ApplicationController
include FeatureFlags
feature_flag :sdg
load_and_authorize_resource find_by: :code, id_param: :code
def index
@goals = @goals.order(:code)
@phases = SDG::Phase.accessible_by(current_ability).order(:kind)
@header = WebSection.find_by!(name: "sdg").header
end
def show
end
def help
@goals = @goals.order(:code)
end
end