Sha256: d9c4559e82a753aecde2b285c0a2e3bf494328acc904ada524b3dd2256bed736
Contents?: true
Size: 609 Bytes
Versions: 17
Compression:
Stored size: 609 Bytes
Contents
# frozen_string_literal: true module Hyrax module Analytics ## # a completely empty module to include if no parser is configured module NullAnalyticsParser; end def self.provider_parser "Hyrax::Analytics::#{Hyrax.config.analytics_provider.to_s.capitalize}".constantize rescue NameError => err Hyrax.logger.warn("Couldn't find an Analytics provider matching "\ " #{Hyrax.config.analytics_provider}. Loading " \ " NullAnalyticsProvider.\n#{err.message}") NullAnalyticsParser end include provider_parser end end
Version data entries
17 entries across 17 versions & 1 rubygems