Skip to content

Commit

Permalink
Revert "Deactivesupport"
Browse files Browse the repository at this point in the history
This reverts commit 4536cc2.

This has introduced a loading issue in kaminari-mongoid:
  kaminari/kaminari-mongoid#9
  • Loading branch information
yuki24 committed Dec 21, 2017
1 parent 9976b6e commit d38c684
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
5 changes: 1 addition & 4 deletions kaminari-core/lib/kaminari/models/configuration_methods.rb
@@ -1,10 +1,7 @@
# frozen_string_literal: true
module Kaminari
module ConfigurationMethods #:nodoc:
def self.included(base)
base.extend ClassMethods
end

extend ActiveSupport::Concern
module ClassMethods #:nodoc:
# Overrides the default +per_page+ value per model
# class Article < ActiveRecord::Base
Expand Down
6 changes: 4 additions & 2 deletions kaminari-core/test/fake_gem.rb
@@ -1,8 +1,10 @@
# frozen_string_literal: true
module Kaminari
module FakeGem
def self.included(base)
def base.inherited(kls)
extend ActiveSupport::Concern

module ClassMethods
def inherited(kls)
super
def kls.fake_gem_defined_method; end
end
Expand Down

0 comments on commit d38c684

Please sign in to comment.