Project

General

Profile

Actions

Bug #3793

closed

api base class cannot find katello engine classes

Added by Thomas McKay over 10 years ago. Updated almost 10 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Category:
API
Target version:
-
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

https://github.com/theforeman/foreman/blob/develop/app/controllers/api/base_controller.rb?source=cc#L35

def resource_class
@resource_class ||= resource_name.classify.constantize
end

When katello engine api controllers extend Foreman::Api::V2::BaseController and attempt to use the base helper methods such as

before_filter :find_resource

the 'resource_class' fails because it cannot find the class.

If the foreman core is going to truly support engines, this needs to be fixed.

Actions #1

Updated by Thomas McKay almost 10 years ago

  • Status changed from New to Resolved

This behavior is fixed

Actions

Also available in: Atom PDF