aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Cabo <david@calibea.com>2011-09-19 12:25:51 +0200
committerDavid Cabo <david@calibea.com>2011-09-19 12:25:51 +0200
commit02264a621c568e1673d57a7fee9341f703b580e2 (patch)
tree3ecd3da09094f081c90d7a856b40cfe2e8f47b59
parentf1ada3fbc072fc5000f66868f8e7872b5d230da5 (diff)
Don't prepend path when loading public categories, closes #178
There's a quite strange interaction that I couldn't work out fully with the themes: even if I comment out the init.rb file in the theme, the theme categories under lib/ were overriding the default ones, which broke some tests. By removing the lib/ prefix it works as expected: the theme overrides the defaults only when alavetelitheme.rb is require'd
-rw-r--r--lib/public_body_categories.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/public_body_categories.rb b/lib/public_body_categories.rb
index 3ede0167e..21a021d39 100644
--- a/lib/public_body_categories.rb
+++ b/lib/public_body_categories.rb
@@ -36,7 +36,7 @@ class PublicBodyCategories
@@CATEGORIES = {} if @@CATEGORIES.nil?
I18n.available_locales.each do |locale|
begin
- load "lib/public_body_categories_#{locale}.rb"
+ load "public_body_categories_#{locale}.rb"
rescue MissingSourceFile
end
end