Sha256: 43da65ecfbbc4f0d6e4e4e410ceef1765c7b8595995bba9773b779f9ad6db9df

Contents?: true

Size: 465 Bytes

Versions: 66

Compression:

Stored size: 465 Bytes

Contents

class ContentRow < ApplicationRecord
  include Concerns::Locale

  include Concerns::Sortable
  sortable scope: [:locale, :rowable_type, :rowable_id]

  belongs_to :rowable, polymorphic: true, touch: true
  has_many :columns, class_name: 'ContentColumn', foreign_key: :row_id, dependent: :destroy

  validates :locale, presence: true

  def column_width_calculator
    @column_width_calculator ||= Udongo::FlexibleContent::ColumnWidthCalculator.new(self)
  end
end

Version data entries

66 entries across 66 versions & 1 rubygems

Version Path
udongo-7.9.0 app/models/content_row.rb
udongo-7.8.1 app/models/content_row.rb
udongo-7.8.0 app/models/content_row.rb
udongo-7.7.2 app/models/content_row.rb
udongo-7.7.1 app/models/content_row.rb
udongo-7.7.0 app/models/content_row.rb
udongo-7.6.2 app/models/content_row.rb
udongo-7.6.1 app/models/content_row.rb
udongo-7.6.0 app/models/content_row.rb
udongo-7.5.1 app/models/content_row.rb
udongo-7.5.0 app/models/content_row.rb
udongo-7.4.2 app/models/content_row.rb
udongo-7.4.1 app/models/content_row.rb
udongo-7.4.0 app/models/content_row.rb
udongo-7.3.5 app/models/content_row.rb
udongo-7.3.4 app/models/content_row.rb
udongo-7.3.3 app/models/content_row.rb
udongo-7.3.2 app/models/content_row.rb
udongo-7.3.1 app/models/content_row.rb
udongo-7.2.1 app/models/content_row.rb