Module: WiserTrails::Deactivatable
- Extended by:
- ActiveSupport::Concern
- Defined in:
- lib/wiser_trails/roles/deactivatable.rb
Overview
Enables per-class disabling of WiserTrails functionality.
Defined Under Namespace
Modules: ClassMethods
Instance Method Summary collapse
-
#wiser_trails_enabled? ⇒ Boolean
private
Returns true if WiserTrails is enabled globally and for this class.
Instance Method Details
#wiser_trails_enabled? ⇒ Boolean
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns true if WiserTrails is enabled globally and for this class. overrides the method from Common
17 18 19 |
# File 'lib/wiser_trails/roles/deactivatable.rb', line 17 def wiser_trails_enabled? WiserTrails.enabled? && self.class.wiser_trails_enabled_for_model end |