Sha256: d3d60bae7d83444a6b0930c164b95be7ecde1115e54f1bb2ea6208d946ca54b9
Contents?: true
Size: 447 Bytes
Versions: 9
Compression:
Stored size: 447 Bytes
Contents
module Kaminari module FakeGem extend ActiveSupport::Concern module ClassMethods def inherited(kls) super def kls.fake_gem_defined_method; end end end end end ActiveSupport.on_load :active_record do ActiveRecord::Base.send :include, Kaminari::FakeGem # Simulate a gem providing a subclass of ActiveRecord::Base before the Railtie is loaded. class GemDefinedModel < ActiveRecord::Base end end
Version data entries
9 entries across 9 versions & 6 rubygems