7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
# File 'lib/super_diff/active_record/object_inspection.rb', line 7
def self.const_missing(missing_const_name)
if ActiveRecord::InspectionTreeBuilders.const_defined?(
missing_const_name
)
warn " WARNING: SuperDiff::ActiveRecord::ObjectInspection::InspectionTreeBuilders::\#{missing_const_name} is deprecated and will be removed in the next major release.\n Please use SuperDiff::ActiveRecord::InspectionTreeBuilders::\#{missing_const_name} instead.\n \#{caller_locations.join(\"\\n\")}\n WARNING\n ActiveRecord::InspectionTreeBuilders.const_get(missing_const_name)\n else\n super\n end\nend\n"
|