-
-
Notifications
You must be signed in to change notification settings - Fork 90
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Does not reload code changes when using namespaces #16
Comments
Could this be related to #14? |
@jacobwalkr may be. There are additions if I call |
Got the same reload issue. Seams that in development this cache must be disabled or must be clearing on each request. |
Thanks for the investigation!
We should add a configuration to disable this cache, and disable it by default in development env. We can also embrace If anyone is willing to propose a PR – you're welcome! If not – I'll take care of it a little bit later. |
@palkan could you please explain a bit the exact purpose of Also as I see from the source, found namespaced policy also cache in the object and in the thread. Will not it be easy and simple just remove |
Namespaced lookup is more expensive. I've added a benchmark which shows that it could be 4x slower without cache:
|
Fixed by 1d4a2e7 and released in 0.2.3. |
Hi, I have a controller(Subscriptions) inside the Dashboard module with action manage, eg (app/controllers/dashboard/subscriptions_controller.rb)
And my policies structure app/policies/dashboard/subscription_policy.rb
When I change the policy(manage?) to false, then the changes do not apply, but everything works fine when I do not use namespaces, and I take subscription_policy to the root of the app / policies directory
Ruby 2.5.1
Rails 5.2.0
Action Policy 0.2.0
The text was updated successfully, but these errors were encountered: