Remove duplication creating web sections in seeds
This commit is contained in:
@@ -7,12 +7,7 @@ if Administrator.count == 0 && !Rails.env.test?
|
||||
end
|
||||
|
||||
Setting.reset_defaults
|
||||
|
||||
WebSection.where(name: "homepage").first_or_create!
|
||||
WebSection.where(name: "debates").first_or_create!
|
||||
WebSection.where(name: "proposals").first_or_create!
|
||||
WebSection.where(name: "budgets").first_or_create!
|
||||
WebSection.where(name: "help_page").first_or_create!
|
||||
load Rails.root.join("db", "web_sections.rb")
|
||||
|
||||
# Default custom pages
|
||||
load Rails.root.join("db", "pages.rb")
|
||||
|
||||
Reference in New Issue
Block a user