Sha256: 6fcd83358857c8adaf293c21a6cfb35e2598a7e02625ea2afa343639774b77e4

Contents?: true

Size: 424 Bytes

Versions: 58

Compression:

Stored size: 424 Bytes

Contents

module Tenon
  module TenonContent
    module RowTypes
      class LeftWrappedImageWithText < 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)
            end
          end
        end
      end
    end
  end
end

Version data entries

58 entries across 58 versions & 1 rubygems

Version Path
tenon-1.0.17 app/models/tenon/tenon_content/row_types/left_wrapped_image_with_text.rb
tenon-1.0.16 app/models/tenon/tenon_content/row_types/left_wrapped_image_with_text.rb
tenon-1.0.15 app/models/tenon/tenon_content/row_types/left_wrapped_image_with_text.rb
tenon-1.0.14 app/models/tenon/tenon_content/row_types/left_wrapped_image_with_text.rb
tenon-1.0.13 app/models/tenon/tenon_content/row_types/left_wrapped_image_with_text.rb
tenon-1.0.12 app/models/tenon/tenon_content/row_types/left_wrapped_image_with_text.rb
tenon-1.0.11 app/models/tenon/tenon_content/row_types/left_wrapped_image_with_text.rb
tenon-1.0.10 app/models/tenon/tenon_content/row_types/left_wrapped_image_with_text.rb
tenon-1.0.9 app/models/tenon/tenon_content/row_types/left_wrapped_image_with_text.rb
tenon-1.0.8 app/models/tenon/tenon_content/row_types/left_wrapped_image_with_text.rb
tenon-1.0.7 app/models/tenon/tenon_content/row_types/left_wrapped_image_with_text.rb
tenon-1.0.6 app/models/tenon/tenon_content/row_types/left_wrapped_image_with_text.rb
tenon-1.0.5 app/models/tenon/tenon_content/row_types/left_wrapped_image_with_text.rb
tenon-1.0.4 app/models/tenon/tenon_content/row_types/left_wrapped_image_with_text.rb
tenon-1.0.3 app/models/tenon/tenon_content/row_types/left_wrapped_image_with_text.rb
tenon-1.0.2 app/models/tenon/tenon_content/row_types/left_wrapped_image_with_text.rb
tenon-1.0.1 app/models/tenon/tenon_content/row_types/left_wrapped_image_with_text.rb
tenon-1.0 app/models/tenon/tenon_content/row_types/left_wrapped_image_with_text.rb