openSUSE/open-build-service

View on GitHub
src/api/app/queries/outdated_notifications_finder/decision.rb

Summary

Maintainability
A
0 mins
Test Coverage
F
50%
class OutdatedNotificationsFinder::Decision
  def initialize(scope, parameters)
    @scope = scope
    @parameters = parameters
  end

  def call
    @scope.where(notifiable_type: 'Decision', notifiable_id: @parameters['notifiable_id'])
  end
end