Sha256: baea89eaed24f2f093f0b8fc95d545f4e5c0f6bfecf79cd973d043974253026c
Contents?: true
Size: 567 Bytes
Versions: 70
Compression:
Stored size: 567 Bytes
Contents
# frozen_string_literal: true module Motor class Form < ::Motor::ApplicationRecord audited belongs_to :author, polymorphic: true, optional: true belongs_to :api_config, foreign_key: :api_config_name, primary_key: :name, inverse_of: :form 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
70 entries across 70 versions & 2 rubygems