Class: Smith::PersistenceAdapters::ActiveRecordExactPredicate

Inherits:
Object
  • Object
show all
Extended by:
Dry::Initializer
Defined in:
lib/smith/persistence_adapters/active_record_exact_predicate.rb

Instance Method Summary collapse

Instance Method Details

#call(scope, expected_payload) ⇒ Object



13
14
15
# File 'lib/smith/persistence_adapters/active_record_exact_predicate.rb', line 13

def call(scope, expected_payload)
  scope.where(predicate, expected_payload)
end