From 0a18ccbc517d1b11b7106cd0c574576e96e9981c Mon Sep 17 00:00:00 2001 From: Clement B Date: Fri, 6 Aug 2021 14:43:27 +0200 Subject: [PATCH] Documentation --- README.md | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index bee15670..3bb3abce 100644 --- a/README.md +++ b/README.md @@ -32,7 +32,14 @@ Audited is currently ActiveRecord-only. In a previous life, Audited worked with Add the gem to your Gemfile: ```ruby -gem "audited", "~> 4.9" +gem "audited", "~> 5.0" +``` +And if you're using ```require: false``` you must add initializers like this: +```ruby +#./config/initializers/audited.rb +require "audited" + +Audited::Railtie.initializers.each(&:run) ``` Then, from your Rails app directory, create the `audits` table: