lib/rails/crud/tools.rb in rails-crud-tools-0.6.9 vs lib/rails/crud/tools.rb in rails-crud-tools-0.6.10

- old
+ new

@@ -16,15 +16,15 @@ module Crud # The Tools module provides utility methods for setting up notifications and processing SQL queries. # It includes methods to subscribe to ActiveSupport notifications and handle different types of SQL operations. module Tools def self.setup - unless File.exist?(CrudConfig.instance.config_file) + unless File.exist?(CrudConfig.config_path) puts "The .crudconfig.yml file is required. Please run `bundle exec crud init`." return end - unless File.exist?(CrudConfig.instance.crud_file_path) + unless File.exist?(CrudConfig.instance.config.crud_file_path) puts "The CRUD file is required. Please run `bundle exec crud gen crud`." return end CrudData.instance.process_id = "rails-crud-tools-#{Time.now.strftime("%Y%m%d%H%M%S")}"