class Rails::Application::Configuration
def gem_extensions
TrustyCms.configuration.gem_extensions # => [:name, :name]
and returns a list of their names as symbols.
Scans the bundled gems for any whose name match the +radiant-something-extension+ format
def gem_extensions Gem.loaded_specs.each_with_object([]) do |(gemname, gemspec), found| if gemname =~ /trusty-.*-extension$/ ep = TrustyCms::ExtensionLoader.record_path(gemspec.full_gem_path, gemname) found << ep.name end end end