# File lib/class_table_inheritance.rb, line 7 def find_with_default_eager_loading(*params) if default_eager_loading if params.last.is_a?(Hash) opts = params.last else opts = {} params.push(opts) end opts[:include] ||= [] opts[:include] = [opts[:include]] unless opts[:include].is_a?(Array) opts[:include] += default_eager_loading end find_without_default_eager_loading(*params) end