Sha256: 2c9ae15cddc4d775b6d3e12ea68caa0aed33b7e1546c7b02dad2e12835a65831

Contents?: true

Size: 427 Bytes

Versions: 1

Compression:

Stored size: 427 Bytes

Contents

module Cachers
  module Extensions
    module ActiveRecord
      module Base
        extend ActiveSupport::Concern

        module ClassMethods

          def inherited(subclass)
            if subclass.name && File.exist?("#{Rails.root}/app/cachers/#{subclass.name.underscore}_cacher.rb")
              subclass.include Cachers::Concern
            end
            super
          end

        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
cachers-5.1.2 lib/cachers/extensions/active_record/base.rb