Class: Workarea::CustomerServiceNavigationSeeds
- Inherits:
-
Object
- Object
- Workarea::CustomerServiceNavigationSeeds
- Defined in:
- app/seeds/workarea/customer_service_navigation_seeds.rb
Instance Method Summary collapse
Instance Method Details
#perform ⇒ Object
3 4 5 6 7 8 9 10 11 12 13 14 |
# File 'app/seeds/workarea/customer_service_navigation_seeds.rb', line 3 def perform puts 'Adding customer service navigation...' content = Navigation::Taxon.create!( name: 'Customer Service', position: 9999 ) Content::Page.tagged_with('customer service').each do |page| content.children.create!(navigable: page) end end |