Sha256: 3179ecd86dc4d15f733f3db1e862c32e55aceec209166d75b972640cd95a4acb
Contents?: true
Size: 484 Bytes
Versions: 6
Compression:
Stored size: 484 Bytes
Contents
class ContentColumn < ApplicationRecord include Concerns::Sortable sortable(scope: :row_id) belongs_to :row, class_name: 'ContentRow', touch: true belongs_to :content, polymorphic: true, dependent: :destroy validates :row, presence: true validates :width_xs, :width_sm, :width_md, :width_lg, :width_xl, presence: true, numericality: { greater_than: 0, less_than_or_equal_to: 12, only_integer: true } default_scope -> { order(:position) } end
Version data entries
6 entries across 6 versions & 1 rubygems