Module: SortIn::Extension::ClassMethods

Defined in:
lib/sort_in/extension.rb

Instance Method Summary collapse

Instance Method Details

#inherited(kls) ⇒ Object



8
9
10
11
# File 'lib/sort_in/extension.rb', line 8

def inherited(kls)
  super
  kls.public_send(:include, SortIn::ModelExtension) if kls.superclass == ActiveRecord::Base
end