Module: Preflex
- Defined in:
- lib/preflex.rb,
lib/preflex/engine.rb,
lib/preflex/version.rb,
app/models/preflex/current.rb,
app/models/preflex/preference.rb,
app/models/preflex/preference_cache.rb,
app/models/preflex/application_record.rb,
app/helpers/preflex/preferences_helper.rb,
app/controllers/preflex/application_controller.rb,
app/controllers/preflex/preferences_controller.rb
Defined Under Namespace
Modules: PreferencesHelper, SetCurrentContext
Classes: ApplicationController, ApplicationRecord, Current, Engine, Preference, PreferenceCache, PreferencesController
Constant Summary
collapse
- VERSION =
"1.1.0"
Class Method Summary
collapse
Class Method Details
.base_controller_class ⇒ Object
8
9
10
|
# File 'lib/preflex.rb', line 8
def self.base_controller_class
(@@base_controller_class || '::ApplicationController').constantize
end
|
.base_controller_class_for_update ⇒ Object
12
13
14
|
# File 'lib/preflex.rb', line 12
def self.base_controller_class_for_update
@@base_controller_class_for_update&.constantize || self.base_controller_class
end
|