require "active_support" require "active_record" if defined?(ActiveSupport.on_load) ActiveSupport.on_load(:active_record) do require "active_record/connection_adapters/cipherstash_pg/database_extensions" # rubocop:disable Lint/ConstantDefinitionInBlock module ActiveRecord module ConnectionAdapters module CipherStashPG class Railtie < ::Rails::Railtie rake_tasks do load "active_record/connection_adapters/cipherstash_pg/database_tasks.rb" end end # Method to install CipherStash custom ORE types def self.install CipherStashPG::DatabaseExtensions.install end # Method to uninstall CipherStash custom ORE types def self.uninstall CipherStashPG::DatabaseExtensions.uninstall end end end end # rubocop:enable Lint/ConstantDefinitionInBlock end end