You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
vendor/bundle/jruby/2.5.0/gems/action_policy-0.2.3/lib/action_policy/policy/cache.rb:45:in `block in apply_with_cache': undefined method `read' for #<Array:0xd0fabc8> (NoMethodError)
from org/jruby/RubyKernel.java:1301:in `yield_self'
from vendor/bundle/jruby/2.5.0/gems/action_policy-0.2.3/lib/action_policy/policy/cache.rb:44:in `apply_with_cache'
from vendor/bundle/jruby/2.5.0/gems/action_policy-0.2.3/lib/action_policy/policy/cache.rb:58:in `apply'
from vendor/bundle/jruby/2.5.0/gems/action_policy-0.2.3/lib/action_policy/policy/cached_apply.rb:18:in `apply'
from vendor/bundle/jruby/2.5.0/gems/action_policy-0.2.3/lib/action_policy/policy/reasons.rb:98:in `allowed_to?'
from app/policies/topic_policy.rb:7:in `show?'
The text was updated successfully, but these errors were encountered:
Tell us about your environment
Ruby Version: 2.5
Framework Version (Rails, whatever): Rails 5.2.1
Action Policy Version: 0.2.3
What did you do?
I have initialized Action Policy's cache in exactly the same way as Rails documentation recommends:
What actually happened?
Exception:
The text was updated successfully, but these errors were encountered: