Class: Admin::OverridesController

Inherits:
BaseController
  • Object
show all
Defined in:
lib/generators/open_loam/install/templates/admin/overrides_controller.rb

Overview

Read-only view of the app's OpenLoam::Overrides — which registry entries are disabled or replaced, plus any STALE overrides (a key that no longer exists). Manager-only, for legibility: it's config declared in an initializer, shown here so an operator can see what's been customized without reading code.

Constant Summary

Constants included from Pagination

Pagination::PER_PAGE

Instance Method Summary collapse

Methods inherited from BaseController

skip_authorization!

Methods included from Pagination

#paginate

Instance Method Details

#index ⇒ Object



9
10
11
12
# File 'lib/generators/open_loam/install/templates/admin/overrides_controller.rb', line 9

def index
  @overrides = OpenLoam::Overrides.all
  @stale = OpenLoam::Overrides.stale
end