Sha256: 8645fb9e7cb500ac907e7a7a33e5cd375d9137e68deb9fc7d3789fcdca6c2615

Contents?: true

Size: 242 Bytes

Versions: 46

Compression:

Stored size: 242 Bytes

Contents

# frozen_string_literal: true

module SeedsHelper
  def without_papertrail_versioning_for(klasses)
    Array(klasses).each { |klass| klass.paper_trail.disable }
    yield
    Array(klasses).each { |klass| klass.paper_trail.enable }
  end
end

Version data entries

46 entries across 46 versions & 1 rubygems

Version Path
renalware-core-2.0.148 db/seeds/seeds_helper.rb
renalware-core-2.0.147 db/seeds/seeds_helper.rb
renalware-core-2.0.146 db/seeds/seeds_helper.rb
renalware-core-2.0.145 db/seeds/seeds_helper.rb
renalware-core-2.0.144 db/seeds/seeds_helper.rb
renalware-core-2.0.143 db/seeds/seeds_helper.rb
renalware-core-2.0.142 db/seeds/seeds_helper.rb
renalware-core-2.0.141 db/seeds/seeds_helper.rb
renalware-core-2.0.140 db/seeds/seeds_helper.rb
renalware-core-2.0.139 db/seeds/seeds_helper.rb
renalware-core-2.0.138 db/seeds/seeds_helper.rb
renalware-core-2.0.137 db/seeds/seeds_helper.rb
renalware-core-2.0.136 db/seeds/seeds_helper.rb
renalware-core-2.0.135 db/seeds/seeds_helper.rb
renalware-core-2.0.134 db/seeds/seeds_helper.rb
renalware-core-2.0.133 db/seeds/seeds_helper.rb
renalware-core-2.0.132 db/seeds/seeds_helper.rb
renalware-core-2.0.131 db/seeds/seeds_helper.rb
renalware-core-2.0.130 db/seeds/seeds_helper.rb
renalware-core-2.0.129 db/seeds/seeds_helper.rb