lib/arclight/repository.rb in arclight-0.4.0 vs lib/arclight/repository.rb in arclight-0.5.0
- old
+ new
@@ -115,11 +115,11 @@
# Mimics ActiveRecord dynamic `find_by!` behavior for the slug or name
#
# @param [String] `slug` or `name` -- same as `find_by`
# @return [Repository]
# @raise [ActiveRecord::RecordNotFound] if cannot find repository
- def self.find_by!(*args)
- repository = find_by(*args)
+ def self.find_by!(**kwargs)
+ repository = find_by(**kwargs)
raise ActiveRecord::RecordNotFound if repository.blank?
repository
end
end