Skip to content

Commit

Permalink
🧹 Fix missing method name
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremyf committed Dec 19, 2023
1 parent 2c64fa3 commit ac83919
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/hyrax/group.rb
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class Group < ApplicationRecord
def self.new(*args)
# This logic path is likely coming from Hyrax specific code; in which it expects a string.
if args.size == 1 && args.first.is_a?(String)
find_by_intialize_by(name: args.first)
find_by(name: args.first) || super(name: args.first)
else
super
end
Expand Down

0 comments on commit ac83919

Please sign in to comment.