Curated list of episodes, bundled to help you on your learning path!
Videos of tech, infrastructure, hardware and software which non-instructional by nature.
Articles around software and tutorials.
Show your love and support while looking fancy.
Got a question or want to chat about a topic? Let's talk!
Yeah, found it. The problem comes from cancancan/lib/cancan/controller_resource.rb in
def resource_class case @options[:class] when false name.to_sym when nil namespaced_name.to_s.camelize.constantize when String @options[:class].constantize else @options[:class] end end
The error cames from namespaced_name.to_s.camelize.constantize, which resolves to "Authority". I now set
class AuthoritiesController < ApplicationController
skip_load_and_authorize_resource load_and_authorize_resource class: Wobauth::Authority
This sets the class name manually. Seems to work now. Thank you for the idea ;-)