Sha256: a9d57fadd0228722bf9f90699c0b45c4f556b819c8bb5eccfb8b09727242e549

Contents?: true

Size: 876 Bytes

Versions: 29

Compression:

Stored size: 876 Bytes

Contents

# Add default kuhsaft brick types
brick_types = [
  { class_name: 'Kuhsaft::TextBrick', group: 'elements' },
  { class_name: 'Kuhsaft::LinkBrick', group: 'elements' },
  { class_name: 'Kuhsaft::VideoBrick', group: 'elements' },
  { class_name: 'Kuhsaft::AccordionBrick', group: 'elements' },
  { class_name: 'Kuhsaft::AccordionItemBrick', group: 'elements' },
  { class_name: 'Kuhsaft::TwoColumnBrick', group: 'layout_elements' },
  { class_name: 'Kuhsaft::SliderBrick', group: 'elements' },
  { class_name: 'Kuhsaft::ImageBrick', group: 'elements' },
  { class_name: 'Kuhsaft::PlaceholderBrick', group: 'elements' },
  { class_name: 'Kuhsaft::AnchorBrick', group: 'elements' },
  { class_name: 'Kuhsaft::AssetBrick', group: 'elements' }
]

brick_types.each do |bt|
  brick_type = Kuhsaft::BrickType.find_or_create_by(class_name: bt[:class_name])
  brick_type.update! bt
end

Version data entries

29 entries across 29 versions & 2 rubygems

Version Path
kuhsaft-2.6.3 db/seeds.rb
kuhsaft-2.6.2 db/seeds.rb
kuhsaft-2.6.1 db/seeds.rb
kuhsaft-2.5.2 db/seeds.rb
kuhsaft-2.6.0 db/seeds.rb
kuhsaft-2.5.1 db/seeds.rb
kuhsaft-2.5.0 db/seeds.rb
qbrick-2.5.0.pre db/seeds.rb
kuhsaft-2.4.3 db/seeds.rb
kuhsaft-2.4.2 db/seeds.rb
kuhsaft-2.4.1 db/seeds.rb
kuhsaft-2.4.0 db/seeds.rb
kuhsaft-2.3.6 db/seeds.rb
kuhsaft-2.3.5 db/seeds.rb
kuhsaft-2.3.4 db/seeds.rb
kuhsaft-2.3.3 db/seeds.rb
kuhsaft-2.3.2 db/seeds.rb
kuhsaft-2.3.1 db/seeds.rb
kuhsaft-2.3.0 db/seeds.rb
kuhsaft-2.2.6 db/seeds.rb