Displaying 1 result from an estimated 1 matches for "namespaced_class".
Did you mean:
namespaced_classes
2012 Mar 07
0
LoadError: Expected X to define on gem upgrade
...base like:
module MyApp
class Store::Base
end
end
I''ve done some digging and found that ActiveAdmin did some refactoring to derive everything from a BaseController. It also depends on another gem (InheritedResources), which does:
self.resource_class ||= begin
namespaced_classes = self.name.sub(/Controller/, '''').split(''::'')
namespaced_class = [namespaced_classes.first, namespaced_classes.last].join(''::'').singularize
namespaced_class.constantize
rescue NameError
nil
end
F...