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