Sha256: 7625a2cd373e78fd3d257b44f2f83291c43fe3378f2bb664b2fa6207e90f4df9

Contents?: true

Size: 464 Bytes

Versions: 58

Compression:

Stored size: 464 Bytes

Contents

module Tenon
  module TenonContent
    module RowTypes
      class ThreeColumnText < TenonContent::RowTypes::Base
        class << self
          def add_pieces_to(row)
            if row.pieces.empty?
              row.pieces.build(piece_type: 'Text', position: 0)
              row.pieces.build(piece_type: 'Text', position: 1)
              row.pieces.build(piece_type: 'Text', position: 2)
            end
          end
        end
      end
    end
  end
end

Version data entries

58 entries across 58 versions & 1 rubygems

Version Path
tenon-1.0.59 app/models/tenon/tenon_content/row_types/three_column_text.rb
tenon-1.0.57 app/models/tenon/tenon_content/row_types/three_column_text.rb
tenon-1.0.56 app/models/tenon/tenon_content/row_types/three_column_text.rb
tenon-1.0.55 app/models/tenon/tenon_content/row_types/three_column_text.rb
tenon-1.0.54 app/models/tenon/tenon_content/row_types/three_column_text.rb
tenon-1.0.53 app/models/tenon/tenon_content/row_types/three_column_text.rb
tenon-1.0.52 app/models/tenon/tenon_content/row_types/three_column_text.rb
tenon-1.0.51 app/models/tenon/tenon_content/row_types/three_column_text.rb
tenon-1.0.50 app/models/tenon/tenon_content/row_types/three_column_text.rb
tenon-1.0.49 app/models/tenon/tenon_content/row_types/three_column_text.rb
tenon-1.0.48 app/models/tenon/tenon_content/row_types/three_column_text.rb
tenon-1.0.47 app/models/tenon/tenon_content/row_types/three_column_text.rb
tenon-1.0.46 app/models/tenon/tenon_content/row_types/three_column_text.rb
tenon-1.0.45 app/models/tenon/tenon_content/row_types/three_column_text.rb
tenon-1.0.44 app/models/tenon/tenon_content/row_types/three_column_text.rb
tenon-1.0.43 app/models/tenon/tenon_content/row_types/three_column_text.rb
tenon-1.0.42 app/models/tenon/tenon_content/row_types/three_column_text.rb
tenon-1.0.41 app/models/tenon/tenon_content/row_types/three_column_text.rb
tenon-1.0.40 app/models/tenon/tenon_content/row_types/three_column_text.rb
tenon-1.0.39 app/models/tenon/tenon_content/row_types/three_column_text.rb