Sha256: c9e6245004235df5848e64bf2ee9839e8c0a7c655e010c1d111cc34c127e05dc

Contents?: true

Size: 294 Bytes

Versions: 1

Compression:

Stored size: 294 Bytes

Contents

require 'i18n/coverage/key_logger'

module I18n
  module Backend
    module KeyLogger
      def lookup(locale, key, scope = [], options = {})
        key = (Array(scope || []) + [key]).compact.join('.')
        I18n::Coverage::KeyLogger.store_key(key)
        super
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
i18n-coverage-0.2.0 lib/i18n/backend/key_logger.rb