diff options
author | Louise Crow <louise.crow@gmail.com> | 2014-08-05 11:34:11 +0100 |
---|---|---|
committer | Louise Crow <louise.crow@gmail.com> | 2014-08-05 11:34:11 +0100 |
commit | 2dcea8ce4b8a614c956c9e50d603e600ef4c9344 (patch) | |
tree | 7b9d4d19dbdbeff407f0c60888c39942a7cadd73 /lib/alavetelitheme.rb | |
parent | 5a4d433ebe0dc072a8c3cb7311e8e73760ce3b0a (diff) | |
parent | 5758fa860ecd58188a1eadba43e707a47e3d3f13 (diff) |
Merge branch 'issues/20-fix-hyphenated-theme-name'
Diffstat (limited to 'lib/alavetelitheme.rb')
-rw-r--r-- | lib/alavetelitheme.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/alavetelitheme.rb b/lib/alavetelitheme.rb index 8476e90..c8611d5 100644 --- a/lib/alavetelitheme.rb +++ b/lib/alavetelitheme.rb @@ -1,4 +1,6 @@ -THEME_NAME = File.split(File.expand_path("../..", __FILE__))[1] +theme_name = File.split(File.expand_path("../..", __FILE__))[1] +theme_name.gsub!('-', '_') +THEME_NAME = theme_name class ActionController::Base # The following prepends the path of the current theme's views to |