lib/rails_erd/cli.rb in rails-erd-1.5.1 vs lib/rails_erd/cli.rb in rails-erd-1.5.2
- old
+ new
@@ -171,10 +171,10 @@
puts "Please create a file in '#{environment_path}' that loads your application environment."
raise
end
if defined? Rails
Rails.application.eager_load!
- Rails.application.config.eager_load_namespaces.each(&:eager_load!)
+ Rails.application.config.eager_load_namespaces.each(&:eager_load!) if Rails.application.config.respond_to?(:eager_load_namespaces)
end
rescue TypeError
end
def create_diagram