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,
app/controllers/primer/view_components/multi_controller.rb,
app/controllers/primer/view_components/auto_check_controller.rb,
app/controllers/primer/view_components/action_menu_controller.rb,
app/controllers/primer/view_components/application_controller.rb,
app/controllers/primer/view_components/form_handler_controller.rb,
app/controllers/primer/view_components/toggle_switch_controller.rb,
app/controllers/primer/view_components/nav_list_items_controller.rb,
app/controllers/primer/view_components/tree_view_items_controller.rb,
app/controllers/primer/view_components/include_fragment_controller.rb,
app/controllers/primer/view_components/auto_complete_test_controller.rb,
app/controllers/primer/view_components/select_panel_items_controller.rb
Overview
:nodoc:
Defined Under Namespace
Modules: VERSION Classes: ActionMenuController, ApplicationController, AutoCheckController, AutoCompleteTestController, Constants, Engine, FormHandlerController, IncludeFragmentController, MultiController, NavListItemsController, SelectPanelItemsController, ToggleSwitchController, TreeViewItemsController
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 |