22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
# File 'lib/generators/administrate/routes/routes_generator.rb', line 22
def warn_about_invalid_models
invalid_dashboard_models.each do |model|
puts "WARNING: Unable to generate a dashboard for #{model}."
if namespaced_models.include?(model)
puts " - Administrate does not yet support namespaced models."
end
if models_without_tables.include?(model)
puts " - It is not connected to a database table."
puts " Make sure your database migrations are up to date."
end
end
unnamed_constants.each do |invalid_model|
puts "NOTICE: Skipping dynamically generated model #{invalid_model}."
end
end
|