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