class TrustyCms::ExtensionLoader
def paths(type)
There are also (deprecated) +add_type_paths+ methods.
For compatibility with the old loader, there are corresponding +type_paths+ methods.
extension_loader.paths(:eager_load) #=> ['extension/app/controllers', 'extension/app/models', 'extension/app/helpers']
extension_loader.paths(:controller) #=> ['extension/app/controllers', 'extension/app/controllers']
extension_loader.paths(:metal) #=> ['extension/app/metal', 'extension/app/metal']
(by calling the corresponding class method on ExtensionPath).
Returns a list of all the paths discovered within extension roots of the specified type.
def paths(type) ExtensionPath.send("#{type}_paths".to_sym) end