Sha256: 0b9d29ef2637f8bce43b0d08b718874d7f06e54bba84bc7994711ed26ea95537

Contents?: true

Size: 915 Bytes

Versions: 72

Compression:

Stored size: 915 Bytes

Contents

module Tenon
  module TenonContent
    module RowTypes
      class FourColumnImageAndText < TenonContent::RowTypes::Base
        class << self
          def add_pieces_to(row)
            if row.pieces.empty?
              row.pieces.build(piece_type: 'Image', position: 0, size: 'three')
              row.pieces.build(piece_type: 'Text', position: 1, size: 'three')
              row.pieces.build(piece_type: 'Image', position: 2, size: 'three')
              row.pieces.build(piece_type: 'Text', position: 3, size: 'three')
              row.pieces.build(piece_type: 'Image', position: 4, size: 'three')
              row.pieces.build(piece_type: 'Text', position: 5, size: 'three')
              row.pieces.build(piece_type: 'Image', position: 6, size: 'three')
              row.pieces.build(piece_type: 'Text', position: 7, size: 'three')
            end
          end
        end
      end
    end
  end
end

Version data entries

72 entries across 72 versions & 1 rubygems

Version Path
tenon-1.1.8 app/models/tenon/tenon_content/row_types/four_column_image_and_text.rb
tenon-1.1.7 app/models/tenon/tenon_content/row_types/four_column_image_and_text.rb
tenon-1.1.6 app/models/tenon/tenon_content/row_types/four_column_image_and_text.rb
tenon-1.1.5 app/models/tenon/tenon_content/row_types/four_column_image_and_text.rb
tenon-1.1.4 app/models/tenon/tenon_content/row_types/four_column_image_and_text.rb
tenon-1.1.3 app/models/tenon/tenon_content/row_types/four_column_image_and_text.rb
tenon-1.1.2 app/models/tenon/tenon_content/row_types/four_column_image_and_text.rb
tenon-1.1.1 app/models/tenon/tenon_content/row_types/four_column_image_and_text.rb
tenon-1.0.76 app/models/tenon/tenon_content/row_types/four_column_image_and_text.rb
tenon-1.0.75 app/models/tenon/tenon_content/row_types/four_column_image_and_text.rb
tenon-1.0.74 app/models/tenon/tenon_content/row_types/four_column_image_and_text.rb
tenon-1.0.73 app/models/tenon/tenon_content/row_types/four_column_image_and_text.rb
tenon-1.0.72 app/models/tenon/tenon_content/row_types/four_column_image_and_text.rb
tenon-1.0.71 app/models/tenon/tenon_content/row_types/four_column_image_and_text.rb
tenon-1.0.70 app/models/tenon/tenon_content/row_types/four_column_image_and_text.rb
tenon-1.0.69 app/models/tenon/tenon_content/row_types/four_column_image_and_text.rb
tenon-1.0.68 app/models/tenon/tenon_content/row_types/four_column_image_and_text.rb
tenon-1.0.67 app/models/tenon/tenon_content/row_types/four_column_image_and_text.rb
tenon-1.0.66 app/models/tenon/tenon_content/row_types/four_column_image_and_text.rb
tenon-1.0.65 app/models/tenon/tenon_content/row_types/four_column_image_and_text.rb