aboutsummaryrefslogtreecommitdiffstats
path: root/lib/theme.rb
diff options
context:
space:
mode:
authorMark Longair <mhl@pobox.com>2013-10-30 10:12:02 +0000
committerMark Longair <mhl@pobox.com>2013-10-30 10:12:02 +0000
commit95a92efe385ebe21b8f31424f2cef86ea9c9455d (patch)
treec7d2530cf615cedc70cb463a9bc0f1c0c4de6729 /lib/theme.rb
parent5964dc79a0e6608529ccf610460d1928811e8ef0 (diff)
parent5aed12997b6d8950e20b1620fd643256ca56f818 (diff)
Merge branch 'switch-theme-script' into rails-3-develop
Conflicts: config/initializers/alaveteli.rb
Diffstat (limited to 'lib/theme.rb')
-rw-r--r--lib/theme.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/theme.rb b/lib/theme.rb
new file mode 100644
index 000000000..4f03b5d99
--- /dev/null
+++ b/lib/theme.rb
@@ -0,0 +1,3 @@
+def theme_url_to_theme_name(theme_url)
+ File.basename theme_url, '.git'
+end