Module: Kaminari::ActiveRecordExtension::ClassMethods
- Defined in:
- lib/kaminari/activerecord/active_record_extension.rb
Overview
:nodoc:
Instance Method Summary collapse
-
#inherited(kls) ⇒ Object
Future subclasses will pick up the model extension.
Instance Method Details
#inherited(kls) ⇒ Object
Future subclasses will pick up the model extension
11 12 13 14 |
# File 'lib/kaminari/activerecord/active_record_extension.rb', line 11 def inherited(kls) #:nodoc: super kls.send(:include, Kaminari::ActiveRecordModelExtension) if kls.superclass == ::ActiveRecord::Base end |