# Changing the plugin load path from a plugin-init.rb

**URL:** <https://www.ruby-forum.com/t/changing-the-plugin-load-path-from-a-plugin-init-rb/184623>\
**Category:** Rails\
**Created:** [March 5, 2010, 11:01am UTC](https://www.ruby-forum.com/t/changing-the-plugin-load-path-from-a-plugin-init-rb/184623 "2010-03-05T11:01:13Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![neomizer](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/9d8465/32.png) [@neomizer](https://www.ruby-forum.com/u/neomizer)\
**Post date:** [March 5, 2010, 11:01am UTC](https://www.ruby-forum.com/t/changing-the-plugin-load-path-from-a-plugin-init-rb/184623/1 "2010-03-05T11:01:13Z")

</div>

Hi,

I’m in the middle of converting one of my Rails-Apps to a plugin/  
engine. Because this new plugin requires a lot of plugins I moved them  
to RAILS\_ROOT/vender/plugins/my\_plugin/plugins and added

config.plugin\_paths += %W( #{RAILS\_ROOT}/vendor/plugins/my\_plugin/  
plugins )

to my RAILS\_ROOT/config/environment.rb. To reduce the necessary logic  
in the surrounding Railsapp I want to move this to my plugin too. To  
put it in the init.rb of my plugin doesn’t work. Is there an other way  
to set this paths??

Best regards, Mark
