Method: ActionPolicy::PerThreadCache.enabled=

Defined in:
lib/action_policy/behaviours/thread_memoized.rb

.enabled=(value) ⇒ Object (writeonly)

Sets the attribute enabled

Parameters:

  • value

    the value to set the attribute enabled to.



8
9
10
# File 'lib/action_policy/behaviours/thread_memoized.rb', line 8

def enabled=(value)
  @enabled = value
end