From 47f904efb866d7c57dbf6bd2e06149f551024448 Mon Sep 17 00:00:00 2001 From: Mike Dalessio Date: Wed, 4 Dec 2024 12:13:07 -0500 Subject: [PATCH] doc: document how to use extensions in a rails app [skip ci] --- lib/sqlite3/database.rb | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/lib/sqlite3/database.rb b/lib/sqlite3/database.rb index 98759792..efa91a95 100644 --- a/lib/sqlite3/database.rb +++ b/lib/sqlite3/database.rb @@ -74,6 +74,15 @@ module SQLite3 # #enable_load_extension; however it is still necessary to call #enable_load_extensions before any # subsequently invocations of #load_extension on the initialized Database object. # + # You can load extensions in a Rails application by using the +extensions:+ configuration option: + # + # # config/database.yml + # development: + # adapter: sqlite3 + # extensions: + # - .sqlpkg/nalgeon/crypto/crypto.so # a filesystem path + # - <%= SQLean::UUID.to_path %> # or ruby code returning a path + # class Database attr_reader :collations