db/seeds.rb in mcms_pages-0.0.4 vs db/seeds.rb in mcms_pages-0.0.5

- old
+ new

@@ -11,65 +11,27 @@ =end if Layout.all.empty? - Layout.create({ - - :name => "one column", - :left => 0, - :right => 0, - :main => 1, - :header => 1, - :footer => 1, - :column_count => 1 - - }) - Layout.create({ - - :name => "two column with right", - :left => 0, - :right => 1, - :main => 1, - :header => 1, - :footer => 1, - :column_count => 2 - - }) - Layout.create({ - - :name => "two column with left", - :left => 1, - :right => 0, - :main => 1, - :header => 1, - :footer => 1, - :column_count => 2 - - }) - Layout.create({ - - :name => "three column", - :left => 1, - :right => 1, - :main => 1, - :header => 1, - :footer => 1, - :column_count => 3 - - }) - - Layout.create({ - - :name => "default", - :left => 0, - :right => 0, - :main => 1, - :header => 0, - :footer => 0, - :column_count => 0 - - }) + Layout.create([ + { :name => "one column", :lft => 0, :rgt => 0, :main => 1, :header => 1, :footer => 1, :column_count => 1 }, + { :name => "two column with right", :lft => 0, :rgt => 1, :main => 1, :header => 1, :footer => 1, :column_count => 2 }, + { :name => "two column with left", :lft => 1, :rgt => 0, :main => 1, :header => 1, :footer => 1, :column_count => 2 }, + { :name => "three column", :lft => 1, :rgt => 1, :main => 1, :header => 1, :footer => 1, :column_count => 3 }, + { :name => "default", :lft => 0, :rgt => 0, :main => 1, :header => 0, :footer => 0, :column_count => 0 }, + { :name => "one column without header", :lft => 0, :rgt => 0, :main => 1, :header => 0, :footer => 1, :column_count => 1 }, + { :name => "two column without header", :lft => 0, :rgt => 1, :main => 1, :header => 0, :footer => 1, :column_count => 2}, + { :name => "two column with left without header", :lft =>1, :rgt => 0, :main => 1, :header => 0, :footer => 1, :column_count => 2}, + { :name => "three column without header", :lft => 1, :rgt => 1, :main => 1, :header => 0, :footer => 1, :column_count => 3}, + { :name => "one column without footer", :lft => 0, :rgt => 0, :main => 1, :header => 1, :footer => 0, :column_count => 1}, + { :name => "two column without footer", :lft => 0, :rgt => 1, :main => 1, :header => 1, :footer => 0, :column_count => 2}, + { :name => "two column with left without footer", :lft => 1, :rgt => 0, :main => 1, :header => 1, :footer => 0, :column_count => 2}, + { :name => "three column without footer", :lft => 1, :rgt => 1, :main => 1, :header => 1, :footer => 0, :column_count => 2}, + { :name => "two column without left", :lft => 1, :rgt => 0, :main => 1, :header => 0, :footer => 0, :column_count => 2}, + { :name => "two column without right", :lft => 0, :rgt => 1, :main => 1, :header => 0, :footer => 0, :column_count => 2}, + { :name => "three column without header footer", :lft => 1, :rgt => 1, :main => 1, :header => 0, :footer => 0, :column_count => 3} + ]) end if Page.where(:link_url => "/").empty?