Sha256: bd1cc9aa3bc713e6be01cc7bab950f2d228d551e3957e9f67adbf6ee27eb0d5c
Contents?: true
Size: 582 Bytes
Versions: 27
Compression:
Stored size: 582 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: -> { ActiveSupport::HashWithIndifferentAccess.new } serialize :preferences, HashSerializer scope :active, -> { where(deleted_at: nil) } end end
Version data entries
27 entries across 27 versions & 4 rubygems