Sha256: a175d6f5e83ee043581d6d6a7bc2a22eb8857affed1e36d22d22e290cab87bba

Contents?: true

Size: 751 Bytes

Versions: 72

Compression:

Stored size: 751 Bytes

Contents

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

Version data entries

72 entries across 72 versions & 1 rubygems

Version Path
tenon-1.0.64 app/models/tenon/tenon_content/row_types/three_column_image_and_text.rb
tenon-1.0.63 app/models/tenon/tenon_content/row_types/three_column_image_and_text.rb
tenon-1.0.62 app/models/tenon/tenon_content/row_types/three_column_image_and_text.rb
tenon-1.0.61 app/models/tenon/tenon_content/row_types/three_column_image_and_text.rb
tenon-1.0.60 app/models/tenon/tenon_content/row_types/three_column_image_and_text.rb
tenon-1.0.59 app/models/tenon/tenon_content/row_types/three_column_image_and_text.rb
tenon-1.0.57 app/models/tenon/tenon_content/row_types/three_column_image_and_text.rb
tenon-1.0.56 app/models/tenon/tenon_content/row_types/three_column_image_and_text.rb
tenon-1.0.55 app/models/tenon/tenon_content/row_types/three_column_image_and_text.rb
tenon-1.0.54 app/models/tenon/tenon_content/row_types/three_column_image_and_text.rb
tenon-1.0.53 app/models/tenon/tenon_content/row_types/three_column_image_and_text.rb
tenon-1.0.52 app/models/tenon/tenon_content/row_types/three_column_image_and_text.rb
tenon-1.0.51 app/models/tenon/tenon_content/row_types/three_column_image_and_text.rb
tenon-1.0.50 app/models/tenon/tenon_content/row_types/three_column_image_and_text.rb
tenon-1.0.49 app/models/tenon/tenon_content/row_types/three_column_image_and_text.rb
tenon-1.0.48 app/models/tenon/tenon_content/row_types/three_column_image_and_text.rb
tenon-1.0.47 app/models/tenon/tenon_content/row_types/three_column_image_and_text.rb
tenon-1.0.46 app/models/tenon/tenon_content/row_types/three_column_image_and_text.rb
tenon-1.0.45 app/models/tenon/tenon_content/row_types/three_column_image_and_text.rb
tenon-1.0.44 app/models/tenon/tenon_content/row_types/three_column_image_and_text.rb