aboutsummaryrefslogtreecommitdiffstats
path: root/lib/refinery
diff options
context:
space:
mode:
authorPhilip Arndt <parndt@gmail.com>2012-01-10 17:19:28 +1300
committerPhilip Arndt <parndt@gmail.com>2012-01-10 17:19:28 +1300
commit2a2fcca64972bc2fb6a3530395366fb2ade42303 (patch)
tree919bc5ce107f83dc40dd0828ff84f9a434bb628c /lib/refinery
parent889127a58c08ba37b3ad1ff7871fbbbf603918c7 (diff)
downloadrefinerycms-blog-2a2fcca64972bc2fb6a3530395366fb2ade42303.tar.gz
refinerycms-blog-2a2fcca64972bc2fb6a3530395366fb2ade42303.tar.bz2
refinerycms-blog-2a2fcca64972bc2fb6a3530395366fb2ade42303.zip
Isolate this engine to Refinery::Blog (which, according to my interpretation of the docs, is how it should be) and remove url hack now that resolve/refinerycms#1193 has been fixed.
Diffstat (limited to 'lib/refinery')
-rw-r--r--lib/refinery/blog/engine.rb10
1 files changed, 2 insertions, 8 deletions
diff --git a/lib/refinery/blog/engine.rb b/lib/refinery/blog/engine.rb
index aa8ffe4..cd764e3 100644
--- a/lib/refinery/blog/engine.rb
+++ b/lib/refinery/blog/engine.rb
@@ -3,7 +3,7 @@ module Refinery
class Engine < Rails::Engine
include Refinery::Engine
- isolate_namespace Refinery
+ isolate_namespace Refinery::Blog
engine_name :refinery_blog
initializer "register refinerycms_blog plugin", :after => :set_routes_reloader do |app|
@@ -13,13 +13,7 @@ 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',
-
- # 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_post_path"
+ :class_name => :'refinery/blog/post'
}
end
end