app/services/hyrax/visibility_propagator.rb in hyrax-4.0.0.beta2 vs app/services/hyrax/visibility_propagator.rb in hyrax-4.0.0.rc1
- old
+ new
@@ -13,17 +13,17 @@
when Hyrax::WorkBehavior # ActiveFedora
FileSetVisibilityPropagator.new(source: source)
when Hyrax::Resource # Valkyrie
ResourceVisibilityPropagator.new(source: source)
else
- NullVisibilityPropogator.new(source: source)
+ NullVisibilityPropagator.new(source: source)
end
end
##
- # Provides a null/logging implementation of the visibility propogator.
- class NullVisibilityPropogator
+ # Provides a null/logging implementation of the visibility propagator.
+ class NullVisibilityPropagator
##
# @!attribute [rw] source
# @return [#visibility]
attr_accessor :source
@@ -34,11 +34,11 @@
end
##
# @return [void]
# @raise [RuntimeError] if we're in development mode
- def propogate
- message = "Tried to propogate visibility to members of #{source} " \
+ def propagate
+ message = "Tried to propagate visibility to members of #{source} " \
"but didn't know what kind of object it is. Model " \
"name #{source.try(:model_name)}. Called from #{caller[0]}."
Hyrax.logger.warn(message)
Rails.env.development? ? raise(message) : :noop