lib/generators/avo/install_generator.rb in avo-3.4.4 vs lib/generators/avo/install_generator.rb in avo-3.5.0

- old
+ new

@@ -19,10 +19,10 @@ def create_resources if defined?(User).present? Rails::Generators.invoke("avo:resource", ["user", "-q"], {destination_root: Rails.root }) end - if defined?(Account).present? + if defined?(Account) && Account.is_a?(ActiveRecord::Base) Rails::Generators.invoke("avo:resource", ["account", "-q"], {destination_root: Rails.root }) end end end end