Skip to content
Permalink

Comparing changes

This is a direct comparison between two commits made in this repository or its related repositories. View the default comparison for this range or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: samvera/hyku
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 0c3d9b849d03b50109a0b5cbcbca6ef4c6e21e89
Choose a base ref
..
head repository: samvera/hyku
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 4af51bebb8abf28a3960d0ac341226ffb7c25f4b
Choose a head ref
Showing with 5 additions and 2 deletions.
  1. +3 −0 .rubocop.yml
  2. +1 −1 app/mailers/hyku_mailer.rb
  3. +1 −1 bin/import_from_purl
3 changes: 3 additions & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
@@ -68,6 +68,9 @@ Style/SingleLineBlockParams:
Rails/ApplicationJob:
Enabled: false

Rails/ApplicationMailer:
Enabled: false

Rails/ApplicationRecord:
Enabled: false

2 changes: 1 addition & 1 deletion app/mailers/hyku_mailer.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# frozen_string_literal: true

# Provides a default host for the current tenant
class HykuMailer < ApplicationMailer
class HykuMailer < ActionMailer::Base
def default_url_options
{ host: host_for_tenant }
end
2 changes: 1 addition & 1 deletion bin/import_from_purl
Original file line number Diff line number Diff line change
@@ -37,7 +37,7 @@ def main(hostname, username, druid_file)
user = validate_username!(username)

count = druids(druid_file) do |druid|
log = Hyrax::Operation.create!(user:, operation_type: "Import Purl Metadata")
log = Hyrax::Operation.create!(user: user, operation_type: "Import Purl Metadata")
ImportWorkFromPurlJob.perform_later(user, druid, log)
end