Permalink
Fetching contributors…
Cannot retrieve contributors at this time
12 lines (11 sloc) 365 Bytes
unless ActiveRecord::Base.respond_to? :inherited_with_object_daddy
class ActiveRecord::Base
def self.inherited_with_object_daddy(subclass)
self.inherited_without_object_daddy(subclass)
subclass.send(:include, ObjectDaddy) unless subclass < ObjectDaddy
end
class << self
alias_method_chain :inherited, :object_daddy
end
end
end