scinote-web/app/notifications/recipients/repository_row_creator.rb

11 lines
215 B
Ruby

# frozen_string_literal: true
class Recipients::RepositoryRowCreator
def initialize(params)
@params = params
end
def recipients
[RepositoryRow.find(@params[:repository_row_id]).created_by]
end
end