class Rails::Application::Configuration
def vendored_extensions
TrustyCms.configuration.vendored_extensions # => [:name, :name]
Searches the defined extension_paths for subdirectories and returns a list of names as symbols.
def vendored_extensions extension_paths.each_with_object([]) do |load_path, found| Dir["#{load_path}/*"].each do |path| if File.directory?(path) ep = TrustyCms::ExtensionLoader.record_path(path) found << ep.name end end end end