9 lines
203 B
Ruby
9 lines
203 B
Ruby
|
# frozen_string_literal: true
|
||
|
|
||
|
class Filter < ApplicationRecord
|
||
|
has_many :conditions, dependent: :destroy
|
||
|
has_many :operations, dependent: :destroy
|
||
|
|
||
|
scope :enabled, -> { where(enabled: true) }
|
||
|
end
|