consul/consul

View on GitHub
app/components/sdg/goals/help_page_component.rb

Summary

Maintainability
A
0 mins
Test Coverage
class SDG::Goals::HelpPageComponent < ApplicationComponent
  attr_reader :goals

  def initialize(goals)
    @goals = goals
  end

  def render?
    feature?("sdg")
  end

  private

    def is_active?(goal)
      "is-active" if goal.code == 1
    end
end