Action Policy v0.2.3 Release Notes
Release Date: 2018-07-03 // almost 6 years ago-
- [Fix #16] Add ability to disable namespace resolution cache. ([@palkan][])
๐ We cache namespaced policy resolution for better performance (it could affect performance when we look up a policy from a deeply nested module context).
It could be disabled by setting
ActionPolicy::LookupChain.namespace_cache_enabled = false
. It's enabled by default unlessRACK_ENV
env var is specified and is not equal to"production"
(e.g. whenRACK_ENV=test
the cache is disabled).When using Rails it's enabled only in production mode but could be configured through setting the
config.action_policy.namespace_cache_enabled
parameter.- ๐ [Fix #18] Clarify documentation around, and fix the way
resolve_rule
resolves rules and rule aliases when subclasses are involved. ([@brendon][])