app/services/clean.rb
# Truncate or remove the period from the given metadata (after scope restriction)
Truncate or remove the period from the given metadata (after scope restriction)
Truncate or remove the period from the given metadata ( after scope restriction )
def clean_metadata(metadata)
        before_period = Range.new(metadata.bounds.min, before)
        Cleaner.new(scope).clean(metadata) do |m|
          m.periodes = Range.remove(m.periodes, before_period)
        end
      end
def clean_metadata ( metadata ) before_period = Range . new ( metadata . bounds . min , before ) Cleaner . new ( scope ) . clean ( metadata ) do | m | m . periodes = Range . remove ( m . periodes , before_period ) end end
Truncate or remove the period from the given metadata (after scope restriction)
Truncate or remove the period from the given metadata ( after scope restriction )
metadata