Class: Merb::BootLoader::SetupStubClasses

Inherits:
Merb::BootLoader show all
Defined in:
lib/merb-core/bootloader.rb

Overview

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

Class Method Summary collapse

Methods inherited from Merb::BootLoader

after, after_app_loads, before, before_app_loads, before_master_shutdown, before_worker_shutdown, default_framework, finished?, inherited, move_klass

Class Method Details

.runObject

Declares empty Application and Exception controllers.

Returns

nil

:api: plugin



1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
# 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