Skip to content

Commit

Permalink
Require i18n/tasks/scanners/pattern_mapper.rb
Browse files Browse the repository at this point in the history
Fixes #204
  • Loading branch information
glebm committed Dec 27, 2016
1 parent 79f8cc7 commit d9a7726
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/i18n/tasks/used_keys.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@
require 'i18n/tasks/scanners/files/caching_file_finder_provider'
require 'i18n/tasks/scanners/files/caching_file_reader'

# Require the pattern mapper even though it's not used by i18n-tasks directly.
# This allows the user to use it in config/i18n-tasks.yml without having to require it.
# See https://github.com/glebm/i18n-tasks/issues/204.
require 'i18n/tasks/scanners/pattern_mapper'

module I18n::Tasks
module UsedKeys # rubocop:disable Metrics/ModuleLength
SEARCH_DEFAULTS = {
Expand Down

0 comments on commit d9a7726

Please sign in to comment.