There's a scenario with the projects I'm working on that could use reloadable
modules, instead of just reloadable classes.
Ticket and patch with test suite changes are at:
http://dev.rubyonrails.org/ticket/5329
The reasoning for doing this is I have a library of 25 and growing plugins that
define AR models for an legacy Oracle system with some 300 tables. The plan is
that developers in our group can use the plugins for their apps and do something
like
class Post < ActiveRecord::Base
include Plugin::PostModel
def my_application_specific_method
end
end
There are tons of apps, all separate, so sharing AR models via plugins is nice.
So Post is reloaded in development mode, but if you're writing
Plugin::PostModel, then it's not reloaded and you have to restart the server.
The patch let's you do
module Plugin
module PostModel
include Reloadable
end
end
and have these reloaded also.
Regards,
Blair
_______________________________________________
Rails-core mailing list
Rails-core@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails-core