Module: PublicActivity::Deactivatable

Extended by:
ActiveSupport::Concern
Defined in:
lib/public_activity/roles/deactivatable.rb

Overview

Enables per-class disabling of PublicActivity functionality.

Defined Under Namespace

Modules: ClassMethods

Instance Method Summary collapse

Instance Method Details

#public_activity_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 PublicActivity is enabled globally and for this class. overrides the method from Common

Returns:

  • (Boolean)

Since:

  • 0.5.0



19
20
21
# File 'lib/public_activity/roles/deactivatable.rb', line 19

def public_activity_enabled?
  PublicActivity.enabled? && self.class.public_activity_enabled_for_model
end