Skip to content

Commit

Permalink
implement gem configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
Paul-Bob committed Sep 13, 2024
1 parent 6fc5c46 commit 80b049a
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions lib/avo/configuration.rb
Original file line number Diff line number Diff line change
Expand Up @@ -233,21 +233,6 @@ def default_logger
}
end

def database_exists?
ActiveRecord::Base.connection
rescue ActiveRecord::NoDatabaseError
false
else
true
end

def audit?
Avo.plugin_manager.installed?("avo-audit_logging") &&
@audit &&
database_exists? &&
ActiveRecord::Base.connection.table_exists?(:avo_activities)
end

def turbo
Avo::ExecutionContext.new(target: @turbo).handle
end
Expand Down

0 comments on commit 80b049a

Please sign in to comment.