Sha256: 056d3eeac32f4e48b4f1b8069e0ce49704483eb1f23d209b1e88e8b1f192bd75

Contents?: true

Size: 342 Bytes

Versions: 25

Compression:

Stored size: 342 Bytes

Contents

module Tenon
  module TenonContent
    module RowTypes
      class FullWidthEmbeddedContent < TenonContent::RowTypes::Base
        class << self
          def add_pieces_to(row)
            row.pieces.build(piece_type: 'EmbeddedContent', position: 0, size: 'twelve') if row.pieces.empty?
          end
        end
      end
    end
  end
end

Version data entries

25 entries across 25 versions & 1 rubygems

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