class Merb::BootLoader::SetupStubClasses

In case someone's running a sparse app, the default exceptions require the Exceptions class. This must run prior to the AfterAppLoads BootLoader So that plugins may have ensured access in the after_app_loads block

Public Class Methods

run() click to toggle source

Declares empty Application and Exception controllers.

Returns

nil

:api: plugin

# File lib/merb-core/bootloader.rb, line 1266
def self.run
  unless defined?(Exceptions)
    Object.class_eval <<-RUBY
      class Application < Merb::Controller
        abstract!
      end

      class Exceptions < Merb::Controller
      end
    RUBY
  end
  nil
end