aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorPhilip Arndt <parndt@gmail.com>2011-11-09 22:19:07 +1300
committerPhilip Arndt <parndt@gmail.com>2011-11-09 22:19:07 +1300
commit36c005ecd112b76d3c9c2d7092f22d6e06755d73 (patch)
tree23e37055e6c6aa79a9c5285387052acdc708ba30 /lib
parentd18364d359359fa6564ad187d7303f8c167154cd (diff)
downloadrefinerycms-blog-36c005ecd112b76d3c9c2d7092f22d6e06755d73.tar.gz
refinerycms-blog-36c005ecd112b76d3c9c2d7092f22d6e06755d73.tar.bz2
refinerycms-blog-36c005ecd112b76d3c9c2d7092f22d6e06755d73.zip
Refactored everything (models, helpers) into proper namespace of Refinery::Blog. Requires refinery commit 25162b585b9c4023d39fd1a9796140bfa4ecb909
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