GitHub Sale: sign up for any paid plan this week and pay nothing until January 1, 2009!  [ hide ]

public
Fork of halorgium/mephisto
Description: A mirror of the mephisto code-base
Homepage: http://mephistoblog.com/
Clone URL: git://github.com/zmack/mephisto.git
svenfuchs (author)
Wed Feb 20 11:11:20 -0800 2008
commit  1ad1b56b4a6c9284534b0afbb9d5d87715ae4312
tree    adc435b61f05728a991fd314188bc3e75cfb6038
parent  2772ec18227b04b3cb618748a2900a7b93b84d94
mephisto / vendor / plugins / engines / lib / engines / plugin / loader.rb
100644 18 lines (17 sloc) 0.57 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
module Engines
  class Plugin
    class Loader < Rails::Plugin::Loader
      protected
        def register_plugin_as_loaded(plugin)
          super plugin
          Engines.plugins << plugin
          register_to_routing(plugin)
        end
        
        # Registers the plugin's controller_paths for the routing system.
        def register_to_routing(plugin)
          initializer.configuration.controller_paths += plugin.select_existing_paths(:controller_paths)
          initializer.configuration.controller_paths.uniq!
        end
    end
  end
end