aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorPete Higgins <pete@peterhiggins.org>2012-01-06 11:36:27 -0800
committerPete Higgins <pete@peterhiggins.org>2012-01-06 11:36:27 -0800
commitedfa8b81e793f071feb8af417930f9beb3fb806e (patch)
treed6246858c9c75afc0dc15e1056037ca093643f22 /lib
parent4a8a46ccc77b342f31ab60dafeb0b84ab538b190 (diff)
downloadrefinerycms-blog-edfa8b81e793f071feb8af417930f9beb3fb806e.tar.gz
refinerycms-blog-edfa8b81e793f071feb8af417930f9beb3fb806e.tar.bz2
refinerycms-blog-edfa8b81e793f071feb8af417930f9beb3fb806e.zip
Fix activity route generation. Workaround for resolve/refinerycms#1193.
Diffstat (limited to 'lib')
-rw-r--r--lib/refinery/blog/engine.rb8
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/refinery/blog/engine.rb b/lib/refinery/blog/engine.rb
index 58e38f4..46ebea1 100644
--- a/lib/refinery/blog/engine.rb
+++ b/lib/refinery/blog/engine.rb
@@ -13,7 +13,13 @@ module Refinery
plugin.url = app.routes.url_helpers.refinery_admin_blog_posts_path
plugin.menu_match = /refinery\/blog\/?(posts|comments|categories)?/
plugin.activity = {
- :class_name => :'refinery/blog/post'
+ :class_name => :'refinery/blog/post',
+
+ # Workaround bug #1193 in refinerycms.
+ # Without this line, the route fragment generated by the Refinery's
+ # activity dashboard would be refinery_blog_admin_blog_posts_path,
+ # which does not exist.
+ :url => "refinery_admin_blog_posts_path"
}
end
end