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 unless RACK_ENV env var is specified and is not equal to "production" (e.g. when RACK_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][])