def activate_extensions
      initializer.initialize_views
      ordered_extensions = []
      configuration = TrustyCms::Application.config
      if configuration.extensions.first == :all
        ordered_extensions = extensions
      else
        configuration.extensions.each {|name| ordered_extensions << select_extension(name)  }
      end
      ordered_extensions.flatten.each(&:activate)
      Page.load_subclasses
    end
def activate_extensions
      initializer.initialize_views
      ordered_extensions = []
      configuration = TrustyCms::Application.config
      if configuration.extensions.first == :all
        ordered_extensions = extensions
      else
        configuration.extensions.each {|name| ordered_extensions << select_extension(name)  }
      end
      ordered_extensions.flatten.each(&:activate)
      Page.load_subclasses
    end
Activates all enabled extensions and makes sure that any newly declared subclasses of Page are recognised.
 The admin UI and views have to be reinitialized each time to pick up changes and avoid duplicates.