Your solution looks good ! Are you sure that even your first statement
(ActiveSupport::Dependencies.load_paths...) is needed ?
> What I'm woundering now is if It's possible to load all helpers without
> specifying them individualy
Something like that ?
module Admin
# adjust path
Dir[File.dirname(__FILE__) + "/../../helpers/**/*_helper.rb"].each do
|file|
ActionController::Base.helper File.basename(file,
'.rb').classify.constantize
end
end
--
Posted via http://www.ruby-forum.com/.
_______________________________________________
Engine-Users mailing list
[email protected]
http://lists.rails-engines.org/listinfo.cgi/engine-users-rails-engines.org