Class: Merb::BootLoader::SetupStubClasses

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

Overview

In case someone is 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

+ (nil) run

Declares empty Application and Exception controllers.

Returns:

  • (nil)


1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
# File 'merb-core/lib/merb-core/bootloader.rb', line 1189

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