Sha256: 76a0a6d23e7f7fdef6f6393a879e3855ba18074e35dc8ecbf9b90d10cfaae8af
Contents?: true
Size: 470 Bytes
Versions: 92
Compression:
Stored size: 470 Bytes
Contents
# frozen_string_literal: true module Motor class Form < ::Motor::ApplicationRecord audited belongs_to :author, polymorphic: true, optional: true has_many :taggable_tags, as: :taggable, dependent: :destroy has_many :tags, through: :taggable_tags, class_name: 'Motor::Tag' attribute :preferences, default: -> { HashWithIndifferentAccess.new } serialize :preferences, HashSerializer scope :active, -> { where(deleted_at: nil) } end end
Version data entries
92 entries across 92 versions & 1 rubygems