Sha256: 98f62e4ef014c41df952233e5c30d11449a40ea9ff514ddce128f1c38b56e20a

Contents?: true

Size: 766 Bytes

Versions: 62

Compression:

Stored size: 766 Bytes

Contents

module Workarea
  class CustomerServicePagesSeeds
    def perform
      puts 'Adding auxiliary pages...'

      Content::Page.create!(
        name: 'Shipping Policy',
        tag_list: 'customer service'
      )

      Content::Page.create!(
        name: 'Returns',
        tag_list: 'customer service'
      )

      Content::Page.create!(
        name: 'Credit Card Security Code'
      )

      internal_error_page = Content.for('Internal Server Error')
      internal_error_page.save!

      not_found_content = Content.for('Not Found')
      not_found_content.blocks.build(
        type: :html,
        data: {
          html: '<p>Try searching or <a href="/">start at the home page</a>.</p>'
        }
      )
      not_found_content.save!
    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_pages_seeds.rb
workarea-core-3.4.36 app/seeds/workarea/customer_service_pages_seeds.rb
workarea-core-3.5.14 app/seeds/workarea/customer_service_pages_seeds.rb
workarea-core-3.4.35 app/seeds/workarea/customer_service_pages_seeds.rb
workarea-core-3.5.13 app/seeds/workarea/customer_service_pages_seeds.rb
workarea-core-3.4.34 app/seeds/workarea/customer_service_pages_seeds.rb
workarea-core-3.5.12 app/seeds/workarea/customer_service_pages_seeds.rb
workarea-core-3.4.33 app/seeds/workarea/customer_service_pages_seeds.rb
workarea-core-3.5.11 app/seeds/workarea/customer_service_pages_seeds.rb
workarea-core-3.5.10 app/seeds/workarea/customer_service_pages_seeds.rb
workarea-core-3.4.32 app/seeds/workarea/customer_service_pages_seeds.rb
workarea-core-3.5.9 app/seeds/workarea/customer_service_pages_seeds.rb
workarea-core-3.4.31 app/seeds/workarea/customer_service_pages_seeds.rb
workarea-core-3.5.8 app/seeds/workarea/customer_service_pages_seeds.rb
workarea-core-3.4.30 app/seeds/workarea/customer_service_pages_seeds.rb
workarea-core-3.5.7 app/seeds/workarea/customer_service_pages_seeds.rb
workarea-core-3.4.29 app/seeds/workarea/customer_service_pages_seeds.rb
workarea-core-3.5.6 app/seeds/workarea/customer_service_pages_seeds.rb
workarea-core-3.4.28 app/seeds/workarea/customer_service_pages_seeds.rb
workarea-core-3.5.5 app/seeds/workarea/customer_service_pages_seeds.rb