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



1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
# File 'lib/merb-core/bootloader.rb', line 1230

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