Sha256: 9bc8016f6e3ef4dfccb7a6be72a5d4f73b41322c90f388a8fa75eec2930e8eb5
Contents?: true
Size: 867 Bytes
Versions: 118
Compression:
Stored size: 867 Bytes
Contents
# frozen_string_literal: true require "primer/classify" require "primer/view_components/version" require "primer/view_components/engine" module Primer # :nodoc: module ViewComponents DEPRECATION_HORIZON = "1.0" # primer/view_components root directory. def self.root Pathname(File.expand_path(File.join("..", ".."), __dir__)) end # Skip coverage here because only one branch will execute depending on what # Rails version you're running. # :nocov: def self.deprecation @deprecation ||= if Rails.application.respond_to?(:deprecators) Rails.application.deprecators[:primer_view_components] ||= ActiveSupport::Deprecation.new( DEPRECATION_HORIZON, "primer_view_components" ) else ActiveSupport::Deprecation.instance end end # :nocov: end end
Version data entries
118 entries across 118 versions & 2 rubygems