aboutsummaryrefslogtreecommitdiffstats
path: root/db/seeds
diff options
context:
space:
mode:
authorJamie Winsor <jamie@enmasse.com>2011-10-27 18:12:32 -0700
committerJamie Winsor <jamie@enmasse.com>2011-10-27 18:12:32 -0700
commit5a958007c5c4b3ef4af001464d75c4c00adfe870 (patch)
treea0aa41f3bd78230d5d3438bef0049ea767a8526d /db/seeds
parent8cd4a282d8f1173f4d8df496c2dd2b61ad892292 (diff)
downloadrefinerycms-blog-5a958007c5c4b3ef4af001464d75c4c00adfe870.tar.gz
refinerycms-blog-5a958007c5c4b3ef4af001464d75c4c00adfe870.tar.bz2
refinerycms-blog-5a958007c5c4b3ef4af001464d75c4c00adfe870.zip
Update blog generator to use Rails 3.1 base
Seeds will now follow Rails 3.1 conventions
Diffstat (limited to 'db/seeds')
-rw-r--r--db/seeds/refinerycms_blog.rb20
1 files changed, 0 insertions, 20 deletions
diff --git a/db/seeds/refinerycms_blog.rb b/db/seeds/refinerycms_blog.rb
deleted file mode 100644
index 19c4370..0000000
--- a/db/seeds/refinerycms_blog.rb
+++ /dev/null
@@ -1,20 +0,0 @@
-Refinery::User.find(:all).each do |user|
- if user.plugins.where(:name => 'refinerycms_blog').blank?
- user.plugins.create(:name => "refinerycms_blog",
- :position => (user.plugins.maximum(:position) || -1) +1)
- end
-end if defined?(Refinery::User)
-
-if defined?(Refinery::Page)
- page = Refinery::Page.create(
- :title => "Blog",
- :link_url => "/blog",
- :deletable => false,
- :position => ((Refinery::Page.maximum(:position, :conditions => {:parent_id => nil}) || -1)+1),
- :menu_match => "^/blogs?(\/|\/.+?|)$"
- )
-
- Refinery::Page.default_parts.each do |default_page_part|
- page.parts.create(:title => default_page_part, :body => nil)
- end
-end \ No newline at end of file