Sha256: fb8f2a95f6a3eed824dafde522b0222276c6bd5179c38930e6272c39fc1f665e

Contents?: true

Size: 340 Bytes

Versions: 15

Compression:

Stored size: 340 Bytes

Contents

# frozen_string_literal: true

module N1Loader
  module ActiveRecord
    # Extension module for ActiveRecord::Base
    module Base
      extend ActiveSupport::Concern

      include N1Loader::Loadable

      # Clear N1Loader cache on reloading the object
      def reload(*)
        n1_clear_cache
        super
      end
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
n1_loader-1.7.4 lib/n1_loader/active_record/base.rb
n1_loader-1.7.3 lib/n1_loader/active_record/base.rb
n1_loader-1.7.2 lib/n1_loader/active_record/base.rb
n1_loader-1.7.1 lib/n1_loader/active_record/base.rb
n1_loader-1.7.0 lib/n1_loader/active_record/base.rb
n1_loader-1.6.6 lib/n1_loader/active_record/base.rb
n1_loader-1.6.5 lib/n1_loader/active_record/base.rb
n1_loader-1.6.4 lib/n1_loader/active_record/base.rb
n1_loader-1.6.3 lib/n1_loader/active_record/base.rb
n1_loader-1.6.2 lib/n1_loader/active_record/base.rb
n1_loader-1.6.1 lib/n1_loader/active_record/base.rb
n1_loader-1.6.0 lib/n1_loader/active_record/base.rb
n1_loader-1.5.1 lib/n1_loader/active_record/base.rb
n1_loader-1.5.0 lib/n1_loader/active_record/base.rb
n1_loader-1.4.4 lib/n1_loader/active_record/base.rb