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

Version Path
enju_leaf-1.2.1 vendor/bundle/ruby/2.3/gems/kaminari-0.17.0/spec/fake_gem.rb
kaminari-0.17.0 spec/fake_gem.rb
ish_lib_manager-0.0.1 test/dummy/vendor/bundle/ruby/2.3.0/gems/kaminari-0.16.3/spec/fake_gem.rb
sc_core-0.0.7 test/dummy/vendor/bundle/ruby/2.2.0/gems/kaminari-0.16.3/spec/fake_gem.rb
solidus_backend-1.0.0.pre3 vendor/bundle/gems/kaminari-0.16.3/spec/fake_gem.rb
solidus_backend-1.0.0.pre2 vendor/bundle/gems/kaminari-0.16.3/spec/fake_gem.rb
solidus_backend-1.0.0.pre vendor/bundle/gems/kaminari-0.16.3/spec/fake_gem.rb
shoppe-paypal-1.1.0 vendor/bundle/ruby/2.1.0/gems/kaminari-0.16.3/spec/fake_gem.rb
kaminari-0.16.3 spec/fake_gem.rb