rails load_plugins

/home/opengoss/workspace/kkk/monit-web/vendor/plugins/upload_progress/init.rb:8:in `evaluate_init_rb': undefined method `pp' for #<Rails::Plugin:0x96028dc> (NoMethodError)
        from /opt/ree/lib/ruby/gems/1.8/gems/rails-2.3.5/lib/rails/plugin.rb:158:in `evaluate_init_rb'
        from /opt/ree/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/core_ext/kernel/reporting.rb:11:in `silence_warnings'
        from /opt/ree/lib/ruby/gems/1.8/gems/rails-2.3.5/lib/rails/plugin.rb:154:in `evaluate_init_rb'
        from /opt/ree/lib/ruby/gems/1.8/gems/rails-2.3.5/lib/rails/plugin.rb:48:in `load'
        from /opt/ree/lib/ruby/gems/1.8/gems/rails-2.3.5/lib/rails/plugin/loader.rb:38:in `load_plugins'
        from /opt/ree/lib/ruby/gems/1.8/gems/rails-2.3.5/lib/rails/plugin/loader.rb:37:in `each'
        from /opt/ree/lib/ruby/gems/1.8/gems/rails-2.3.5/lib/rails/plugin/loader.rb:37:in `load_plugins'
        from /opt/ree/lib/ruby/gems/1.8/gems/rails-2.3.5/lib/initializer.rb:369:in `load_plugins'
        from /opt/ree/lib/ruby/gems/1.8/gems/rails-2.3.5/lib/initializer.rb:165:in `process'
        from /opt/ree/lib/ruby/gems/1.8/gems/rails-2.3.5/lib/initializer.rb:113:in `send'
        from /opt/ree/lib/ruby/gems/1.8/gems/rails-2.3.5/lib/initializer.rb:113:in `run'
        from /home/opengoss/workspace/kkk/monit-web/config/environment.rb:12
        from /opt/ree/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
        from /opt/ree/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
        from /opt/ree/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/rack/adapter/rails.rb:42:in `load_application'
        from /opt/ree/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/rack/adapter/rails.rb:23:in `initialize'
        from /opt/ree/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/rack/adapter/loader.rb:48:in `new'
        from /opt/ree/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/rack/adapter/loader.rb:48:in `for'
        from /opt/ree/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/controllers/controller.rb:163:in `load_adapter'
        from /opt/ree/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/controllers/controller.rb:67:in `start'
        from /opt/ree/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/runner.rb:177:in `send'
        from /opt/ree/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/runner.rb:177:in `run_command'
        from /opt/ree/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/runner.rb:143:in `run!'
        from /opt/ree/lib/ruby/gems/1.8/gems/thin-1.2.7/bin/thin:6
        from /opt/ree/bin/thin:19:in `load'
        from /opt/ree/bin/thin:19

 1 def evaluate_init_rb(initializer)
 2         if has_init_file?
 3           silence_warnings do
 4             # Allow plugins to reference the current configuration object
 5            #允许所有插件引用当前的cofig对象 
 6             config = initializer.configuration
 7             eval(IO.read(init_path), binding, init_path)
 8           end
 9         end
10 end           

 

posted @ 2010-08-05 16:52  麦飞  阅读(394)  评论(0编辑  收藏  举报