2016-10-11 20:44:41 +00:00
|
|
|
# frozen_string_literal: true
|
2015-02-11 06:37:40 +00:00
|
|
|
module Kaminari
|
|
|
|
module FakeGem
|
2017-06-29 09:00:44 +00:00
|
|
|
def self.included(base)
|
|
|
|
def base.inherited(kls)
|
2015-02-11 06:37:40 +00:00
|
|
|
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
|
2011-05-20 22:17:28 +00:00
|
|
|
end
|