Sha256: 544352a3278e6852065872921d006fe3e0cd413294f094560eb58e6a8f5c77b0

Contents?: true

Size: 423 Bytes

Versions: 1

Compression:

Stored size: 423 Bytes

Contents

module RocketJobMissionControl
  module DirmonEntriesHelper
    def dirmon_counts_by_state(state)
      RocketJob::DirmonEntry.counts_by_state.fetch(state.downcase.to_sym, 0)
    end


    def dirmon_entry_find_category(categories, category_name = :main)
      return unless categories

      categories.each { |category| return category if category_name == (category["name"] || :main).to_sym }
      nil
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rocketjob_mission_control-6.0.0.beta app/helpers/rocket_job_mission_control/dirmon_entries_helper.rb