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



245
246
247
248
# File 'lib/object_daddy.rb', line 245

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