In my company we developed a rails cms and now we are trying to figure
out how to use it in the smartest way.
We would like to use our modules, wich are mvc for common site elements
like ‘pages’, ‘posts’, ‘news’, ‘feed’ etc, as svn externals in every
site project. In this way if we find a bug in the cms core we can easily
update every site we made.
In the same time we would like to make possible to extend our core
modules for customizing them if needed.
We thought this directory structure would be nice:
… other rails dirs …
/modules # <-- here we want to put svn:external to cms modules
the extension of core modules will be put on site_project/app as a
normal rails application. If we don’t put an extension we want to load
the related module.
E.g. in the directory i put before if i define
site_project/app/models/page this file will be loaded but if my
application will need post.rb the modules file will be loaded.
I know i didn’t explain very clear I hope someone would understant
enough to help me, even because i bet it’s a common problem for studios
that use rails for web developing.