mirror of
https://github.com/kaminari/kaminari.git
synced 2022-11-09 13:44:37 -05:00
Redundant self.
This commit is contained in:
parent
ad719a0fc6
commit
e16111e4b3
2 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue