Sha256: 477d3aef5fb67b0374f97117ce47b129878609685ce4fefa80c35275cbfcb057
Contents?: true
Size: 363 Bytes
Versions: 18
Compression:
Stored size: 363 Bytes
Contents
# frozen_string_literal: true module Motor class Query < ::Motor::ApplicationRecord belongs_to :author, polymorphic: true, optional: true has_many :taggable_tags, as: :taggable has_many :tags, through: :taggable_tags, class_name: 'Motor::Tag' serialize :preferences, HashSerializer scope :active, -> { where(deleted_at: nil) } end end
Version data entries
18 entries across 18 versions & 1 rubygems