1
0
Fork 0
mirror of https://github.com/kaminari/kaminari.git synced 2022-11-09 13:44:37 -05:00

Redundant self.

This commit is contained in:
Akira Matsuda 2016-10-12 10:13:35 +09:00
parent ad719a0fc6
commit e16111e4b3
2 changed files with 2 additions and 2 deletions

View file

@ -15,7 +15,7 @@ module Kaminari
included do
# Existing subclasses pick up the model extension as well
self.descendants.each do |kls|
descendants.each do |kls|
kls.send(:include, Kaminari::ActiveRecordModelExtension) if kls.superclass == ::ActiveRecord::Base
end
end

View file

@ -6,7 +6,7 @@ module Kaminari
extend ActiveSupport::Concern
included do
self.send(:include, Kaminari::ConfigurationMethods)
send(:include, Kaminari::ConfigurationMethods)
# Fetch the values at the specified page number
# Model.page(5)