Class: ActiveRecord::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/object_daddy.rb

Class Method Summary collapse

Class Method Details

.inherited_with_object_daddy(subclass) ⇒ Object



275
276
277
278
# File 'lib/object_daddy.rb', line 275

def self.inherited_with_object_daddy(subclass)
  self.inherited_without_object_daddy(subclass)
  subclass.send(:include, ObjectDaddy) unless subclass < ObjectDaddy
end