aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--init.rb3
-rw-r--r--lib/alavetelitheme.rb8
-rw-r--r--lib/views/general/_popup_banner.rhtml1
3 files changed, 6 insertions, 6 deletions
diff --git a/init.rb b/init.rb
index ad2cf40..e69de29 100644
--- a/init.rb
+++ b/init.rb
@@ -1,3 +0,0 @@
-if ENV["RAILS_ENV"] != "test" # Don't let the theme interfere with Alaveteli specs
- require "alavetelitheme.rb"
-end
diff --git a/lib/alavetelitheme.rb b/lib/alavetelitheme.rb
index e8cc960..8758563 100644
--- a/lib/alavetelitheme.rb
+++ b/lib/alavetelitheme.rb
@@ -22,9 +22,11 @@ end
end
# Monkey patch app code
-for patch in ['controller_patches.rb',
- 'model_patches.rb',
- 'config/custom-routes.rb',
+for patch in ['controller_patches.rb',
+ 'model_patches.rb',
+ 'patch_mailer_paths.rb',
'gettext_setup.rb']
require File.expand_path "../#{patch}", __FILE__
end
+
+$alaveteli_route_extensions << 'config/custom-routes.rb'
diff --git a/lib/views/general/_popup_banner.rhtml b/lib/views/general/_popup_banner.rhtml
new file mode 100644
index 0000000..49c9ec2
--- /dev/null
+++ b/lib/views/general/_popup_banner.rhtml
@@ -0,0 +1 @@
+<%#- anything you put here will appear as a popup warning on every screen in Alaveteli -%>