Module: Oasis::App::Loader

Defined in:
lib/oasis/app/loader.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.included(base) ⇒ Object



13
14
15
16
17
# File 'lib/oasis/app/loader.rb', line 13

def self.included(base)
  base.class_eval do
    alias_method_chain :register_plugin_as_loaded, :oasis
  end
end

Instance Method Details

#register_plugin_as_loaded_with_oasis(plugin) ⇒ Object

this is used to capture and record when a plugin has been loaded that Rails has decided is a rails engine.



7
8
9
10
11
# File 'lib/oasis/app/loader.rb', line 7

def register_plugin_as_loaded_with_oasis(plugin)
  register_plugin_as_loaded_without_oasis(plugin)
  Oasis.apps << plugin if plugin.engine?
  Oasis::Logger.trace "Loading Rails App: #{plugin.name}"
end