Deactivesupport

This commit is contained in:
Akira Matsuda 2017-06-29 18:00:44 +09:00
parent 9229dce33e
commit 4536cc2800
2 changed files with 6 additions and 5 deletions

View File

@ -1,7 +1,10 @@
# frozen_string_literal: true
module Kaminari
module ConfigurationMethods #:nodoc:
extend ActiveSupport::Concern
def self.included(base)
base.extend ClassMethods
end
module ClassMethods #:nodoc:
# Overrides the default +per_page+ value per model
# class Article < ActiveRecord::Base

View File

@ -1,10 +1,8 @@
# frozen_string_literal: true
module Kaminari
module FakeGem
extend ActiveSupport::Concern
module ClassMethods
def inherited(kls)
def self.included(base)
def base.inherited(kls)
super
def kls.fake_gem_defined_method; end
end