Automatic reloading of plugin contents.

0 views
Skip to first unread message

Edmundo Valle Neto

unread,
Feb 14, 2008, 9:41:10 PM2/14/08
to subs...@googlegroups.com
Just a suggestion to put on the wiki for who want to contribute and
don't know plugins very well, about how to make the changes made inside
substruct auto reload.


/config/initializers/always_load_these_paths.rb

SUBSTRUCT_ROOT="#{RAILS_ROOT}/vendor/plugins/substruct"

Dependencies.load_once_paths.delete("#{SUBSTRUCT_ROOT}/app/controllers")
Dependencies.load_once_paths.delete("#{SUBSTRUCT_ROOT}/app/helpers")
Dependencies.load_once_paths.delete("#{SUBSTRUCT_ROOT}/app/models")
Dependencies.load_once_paths.delete("#{SUBSTRUCT_ROOT}/lib")


Reply all
Reply to author
Forward
0 new messages