diff options
author | Jamie Winsor <jamie@enmasse.com> | 2011-10-27 18:12:32 -0700 |
---|---|---|
committer | Jamie Winsor <jamie@enmasse.com> | 2011-10-27 18:12:32 -0700 |
commit | 5a958007c5c4b3ef4af001464d75c4c00adfe870 (patch) | |
tree | a0aa41f3bd78230d5d3438bef0049ea767a8526d /db/seeds | |
parent | 8cd4a282d8f1173f4d8df496c2dd2b61ad892292 (diff) | |
download | refinerycms-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.rb | 20 |
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 |