module Ephemeron::Validators::Store::Unused
Public Instance Methods
call()
click to toggle source
# File lib/ephemeron/validators/store/unused.rb, line 9 def call models = Ephemeron::Store .store .filter { |_, model| !model.changed? && !Logger.has?(model, :used) } .values return if models.empty? model_ids = Ephemeron::Store::Convert.call(models) raise( StoreError, "#{model_ids} were added to store but neither fetched nor changed" ) end