lib/administrate/resource_resolver.rb in administrate-0.8.1 vs lib/administrate/resource_resolver.rb in administrate-0.9.0

- old
+ new

@@ -3,18 +3,18 @@ def initialize(controller_path) @controller_path = controller_path end def dashboard_class - Object.const_get(resource_class_name + "Dashboard") + ActiveSupport::Inflector.constantize("#{resource_class_name}Dashboard") end def namespace controller_path.split("/").first end def resource_class - Object.const_get(resource_class_name) + ActiveSupport::Inflector.constantize(resource_class_name) end def resource_name model_path_parts.map(&:underscore).join("__").to_sym end