```ruby
module ContentManager
  module ClassResolution

    def self.content_class(name)
      content_class_name(name).constantize
    end

    def self.content_class_name(class_name)
      klass = class_name.classify

      if Object.const_defined?(klass)
        return klass
      elsif file_path = rails_constant_file_path(class_name)
        require_dependency file_path
        return klass
      else
        cm_class_name = "content_manager/#{class_name}".classify
        begin
          cm_class_name.constantize
          return cm_class_name
        rescue NameError
          raise "Couldn't find constant definition #{name}, it should be in a file called #{name}.rb"
        end
      end
    end

    def self.rails_constant_file_path(class_name)
      Dir["#{Rails.root}/{app,lib}/**/#{class_name}.rb"].first
    end
  end
end
```

Update error messages to use correct class name
user
```ruby
module ContentManager
  module ClassResolution
    def self.content_class(name)
      content_class_name(name).constantize
    end

    def self.content_class_name(class_name)
      klass = class_name.classify

      if Object.const_defined?(klass)
        return klass
      elsif file_path = rails_constant_file_path(class_name)
        require_dependency file_path
        return klass
      else
        cm_class_name = "content_manager/#{class_name}".classify
        begin
          cm_class_name.constantize
          return cm_class_name
        rescue NameError
          raise "Couldn't find constant definition #{class_name}, it should be in a file called #{class_name}.rb"
        end
      end
    end

    def self.rails_constant_file_path(class_name)
      Dir["#{Rails.root}/{app,lib}/**/#{class_name}.rb"].first
    end
  end
end
```
assistant