lib/administrate/resource_resolver.rb in administrate-0.18.0 vs lib/administrate/resource_resolver.rb in administrate-0.19.0

- old
+ new

@@ -33,10 +33,11 @@ def model_path_parts controller_path_parts.map(&:camelize) end def controller_path_parts - controller_path.split("/")[1..-1].map(&:singularize) + path_parts = controller_path.split("/")[1..-1] + path_parts << path_parts.pop.singularize end attr_reader :controller_path end end