Class: Coverband::Collectors::TranslationTracker

Inherits:
AbstractTracker show all
Defined in:
lib/coverband/collectors/translation_tracker.rb

Overview

This class tracks translation usage via I18n::Backend

Constant Summary collapse

REPORT_ROUTE =
"translations_tracker"
TITLE =
"Translations"

Instance Attribute Summary

Attributes inherited from AbstractTracker

#ignore_patterns, #logger, #store, #target

Instance Method Summary collapse

Methods inherited from AbstractTracker

#all_keys, #as_json, #clear_key!, #initialize, #keys_to_record, #logged_keys, #reset_recordings, #route, #save_report, supported_version?, #title, #track_key, #tracking_since, #unused_keys, #used_keys

Constructor Details

This class inherits a constructor from Coverband::Collectors::AbstractTracker

Instance Method Details

#railtie!Object



27
28
29
30
# File 'lib/coverband/collectors/translation_tracker.rb', line 27

def railtie!
  # plugin to i18n
  ::I18n::Backend::Simple.send :include, ::Coverband::Collectors::I18n::KeyRegistry
end