Sha256: cfd56de603272e408eb17622aa6c6ec3c40c6c31b7ff2868354f2c5d53477148

Contents?: true

Size: 317 Bytes

Versions: 1

Compression:

Stored size: 317 Bytes

Contents

# frozen_string_literal: true

module Snapcher
  class Scanning < ::ActiveRecord::Base
    belongs_to :scannable, polymorphic: true

    cattr_accessor :snapcher_class_names

    scope :scannable_finder, ->(scannable_id, scannable_type) { where(scannable_id: scannable_id, scannable_type: scannable_type) }
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
snapcher-0.1.0 lib/snapcher/scanning.rb