aboutsummaryrefslogtreecommitdiffstats
path: root/config/initializers/theme_loader.rb
Commit message (Collapse)AuthorAgeLines
* Move themes from vendor/plugins to lib/themesMark Longair2013-12-03-1/+3
| | | | | | | | | | These are essentially required in exactly the same way as before, but from lib/themes rather than vendor/plugins. This is the simplest possible change in order make the themes work outside vendor/plugins, I think, but it's not necessarily ideal. It would be worth considering whether these should be changed to Rails engines, as described here: http://guides.rubyonrails.org/engines.html
* Make theme URL to theme name mapping consistentMark Longair2013-10-15-2/+1
| | | | | | | | | | | | | | | | | | | | | The code that extracted the theme name from each entry in THEME_URLS (in order to require code from a directory whose leaf name is the theme name) only supported git URLs that ended in '.git'. However, the themes:install rake task usefully supports a wider range of git URLs - for example, all of the following were supported: /home/whoever/themes/blah-theme => blah-theme /home/whoever/themes/blah-theme/ => blah-theme git://wherever/blah-theme.git => blah-theme ssh://wherever/blah-theme.git// => blah-theme This commit factors out a theme_url_to_theme_name method, adds tests for it, and uses that method in both: lib/tasks/themes.rake config/initializers/theme_loader.rb ... so that a wider range of theme URLs are consistently supported.
* Add a simple hook to allow theme tests to load the theme code in the context ↵Louise Crow2013-05-02-5/+16
| | | | of Alaveteli.
* Rename Configuration class to avoid conflict with ActiveSupport::ConfigurableHenare Degan2013-03-03-1/+1
|
* Extract configuration with defaults into one moduleMatthew Landauer2012-09-25-2/+1
|
* Multi-theme support for custom routesRobin Houston2012-06-05-1/+5
| | | | | A simple mechanism for allowing multiple themes to register custom routes.
* When loading themes, only attempt to do so if it exists.Seb Bacon2012-05-30-1/+4
|
* Experimental theme loader, that allows us to specify the order themes are ↵Seb Bacon2012-05-23-0/+7
loaded in -- so we can try having more than one loaded at once.