aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/refinery/blog.rb5
-rw-r--r--lib/refinery/blog/engine.rb2
2 files changed, 6 insertions, 1 deletions
diff --git a/lib/refinery/blog.rb b/lib/refinery/blog.rb
index 78e1bf5..6b3b72c 100644
--- a/lib/refinery/blog.rb
+++ b/lib/refinery/blog.rb
@@ -6,6 +6,7 @@ module Refinery
autoload :BlogGenerator, 'generators/refinery/blog/blog_generator'
module Blog
+
require 'refinery/blog/engine' if defined?(Rails)
autoload :Version, 'refinery/blog/version'
@@ -30,6 +31,10 @@ module Refinery
def factory_paths
@factory_paths ||= [ root.join("spec/factories").to_s ]
end
+
+ def table_name_prefix
+ 'refinery_blog_'
+ end
end
end
end
diff --git a/lib/refinery/blog/engine.rb b/lib/refinery/blog/engine.rb
index 63b2793..3c829ca 100644
--- a/lib/refinery/blog/engine.rb
+++ b/lib/refinery/blog/engine.rb
@@ -16,7 +16,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'
+ :class_name => :'refinery/blog/post'
}
end
end