magiclabs/alchemy_cms — pull request #337 by hmans (2012-12-07 06:21:31+00:00)
Title: DISCUSSION: Multisite fixes/tweaks

Here's a bunch of commits that fix various little annoyances/bugs introduced by the new multisite support.

- The `Site` model has been modified so it automatically creates a new default language (using the settings from `config.yml`) **if** its `languages` association is empty.
- The `alchemy:db:seed` task has been modified to make use of this new functionality (instead of seeding the default language directly.)
- The 'alchemy:upgrade' task has been fixed to take this new behaviour into account.

Steps taken to test the new code:

- Specs :-)
- I've created a new Alchemy host application to test the `alchemy:install` task :ok:
- I've updated an older Alchemy host application (guess which one!) using `alchemy:upgrade` :ok:

Once again, I'm happy to open another pull request with a clean commit after hearing whatever feedback you may have on this stuff.

PS.: waking up at 4am sucks, but I guess it does have its merits.