Sha256: e1b5f9bd7296081d8eb3a69ce4e27bda0cb2b9a5243e4b696f3fff3dabc2d030

Contents?: true

Size: 377 Bytes

Versions: 62

Compression:

Stored size: 377 Bytes

Contents

module Workarea
  class CustomerServiceNavigationSeeds
    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
  end
end

Version data entries

62 entries across 62 versions & 1 rubygems

Version Path
workarea-core-3.5.15 app/seeds/workarea/customer_service_navigation_seeds.rb
workarea-core-3.4.36 app/seeds/workarea/customer_service_navigation_seeds.rb
workarea-core-3.5.14 app/seeds/workarea/customer_service_navigation_seeds.rb
workarea-core-3.4.35 app/seeds/workarea/customer_service_navigation_seeds.rb
workarea-core-3.5.13 app/seeds/workarea/customer_service_navigation_seeds.rb
workarea-core-3.4.34 app/seeds/workarea/customer_service_navigation_seeds.rb
workarea-core-3.5.12 app/seeds/workarea/customer_service_navigation_seeds.rb
workarea-core-3.4.33 app/seeds/workarea/customer_service_navigation_seeds.rb
workarea-core-3.5.11 app/seeds/workarea/customer_service_navigation_seeds.rb
workarea-core-3.5.10 app/seeds/workarea/customer_service_navigation_seeds.rb
workarea-core-3.4.32 app/seeds/workarea/customer_service_navigation_seeds.rb
workarea-core-3.5.9 app/seeds/workarea/customer_service_navigation_seeds.rb
workarea-core-3.4.31 app/seeds/workarea/customer_service_navigation_seeds.rb
workarea-core-3.5.8 app/seeds/workarea/customer_service_navigation_seeds.rb
workarea-core-3.4.30 app/seeds/workarea/customer_service_navigation_seeds.rb
workarea-core-3.5.7 app/seeds/workarea/customer_service_navigation_seeds.rb
workarea-core-3.4.29 app/seeds/workarea/customer_service_navigation_seeds.rb
workarea-core-3.5.6 app/seeds/workarea/customer_service_navigation_seeds.rb
workarea-core-3.4.28 app/seeds/workarea/customer_service_navigation_seeds.rb
workarea-core-3.5.5 app/seeds/workarea/customer_service_navigation_seeds.rb