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.2.0 app/models/content_row.rb
udongo-7.1.3 app/models/content_row.rb
udongo-7.1.2 app/models/content_row.rb
udongo-7.1.1 app/models/content_row.rb
udongo-7.1.0 app/models/content_row.rb
udongo-7.0.4 app/models/content_row.rb
udongo-7.0.3 app/models/content_row.rb
udongo-7.0.2 app/models/content_row.rb
udongo-7.0.1 app/models/content_row.rb
udongo-7.0.0 app/models/content_row.rb
udongo-6.6.3 app/models/content_row.rb
udongo-6.6.2 app/models/content_row.rb
udongo-6.6.1 app/models/content_row.rb
udongo-6.6.0 app/models/content_row.rb
udongo-6.5.2 app/models/content_row.rb
udongo-6.5.1 app/models/content_row.rb
udongo-6.5.0 app/models/content_row.rb
udongo-6.4.1 app/models/content_row.rb
udongo-6.4.0 app/models/content_row.rb
udongo-6.3.2 app/models/content_row.rb