This rule was added in rubocop 1.79. We were inconsistent about it, so we're adding it to get more consistency.
20 lines
405 B
Ruby
20 lines
405 B
Ruby
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
|