README.md in audited-5.1.0 vs README.md in audited-5.2.0

- old
+ new

@@ -217,11 +217,11 @@ ``` Outside of a request, Audited can still record the user with the `as_user` method: ```ruby -Audited.audit_model.as_user(User.find(1)) do +Audited.audit_class.as_user(User.find(1)) do post.update!(title: "Hello, world!") end post.audits.last.user # => #<User id: 1> ``` @@ -244,11 +244,11 @@ ``` `as_user` also accepts a string, which can be useful for auditing updates made in a CLI environment: ```rb -Audited.audit_model.as_user("console-user-#{ENV['SSH_USER']}") do +Audited.audit_class.as_user("console-user-#{ENV['SSH_USER']}") do post.update_attributes!(title: "Hello, world!") end post.audits.last.user # => 'console-user-username' ``` @@ -312,11 +312,11 @@ If you want to audit only under specific conditions, you can provide conditional options (similar to ActiveModel callbacks) that will ensure your model is only audited for these conditions. ```ruby class User < ActiveRecord::Base audited if: :active? - + def active? last_login > 6.months.ago end end ``` @@ -426,10 +426,10 @@ Audited.store_synthesized_enums = true ``` ## Support -You can find documentation at: http://rdoc.info/github/collectiveidea/audited +You can find documentation at: https://www.rubydoc.info/gems/audited Or join the [mailing list](http://groups.google.com/group/audited) to get help or offer suggestions. ## Contributing