Module: Primer::ViewComponents
- Defined in:
- lib/primer/view_components.rb,
lib/primer/view_components/engine.rb,
lib/primer/view_components/audited.rb,
lib/primer/view_components/version.rb,
lib/primer/view_components/statuses.rb,
lib/primer/view_components/constants.rb
Overview
:nodoc:
Defined Under Namespace
Modules: VERSION Classes: Constants, Engine
Constant Summary collapse
- DEPRECATION_HORIZON =
"1.0"
- AUDITED =
JSON.parse( File.read( File.join(File.dirname(__FILE__), "../../../static/audited_at.json") ) ).freeze
- STATUSES =
JSON.parse( File.read( File.join(File.dirname(__FILE__), "../../../static/statuses.json") ) ).freeze
Class Method Summary collapse
-
.deprecation ⇒ Object
:nocov:.
-
.root ⇒ Object
primer/view_components root directory.
Class Method Details
.deprecation ⇒ Object
:nocov:
21 22 23 24 25 26 27 28 29 30 |
# File 'lib/primer/view_components.rb', line 21 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 |
.root ⇒ Object
primer/view_components root directory.
13 14 15 |
# File 'lib/primer/view_components.rb', line 13 def self.root Pathname(File.(File.join("..", ".."), __dir__)) end |