README.md in audited-4.0.0.rc1 vs README.md in audited-4.0.0
- old
+ new
@@ -1,11 +1,11 @@
Audited [![Build Status](https://secure.travis-ci.org/collectiveidea/audited.png)](http://travis-ci.org/collectiveidea/audited) [![Dependency Status](https://gemnasium.com/collectiveidea/audited.png)](https://gemnasium.com/collectiveidea/audited)[![Code Climate](https://codeclimate.com/github/collectiveidea/audited.png)](https://codeclimate.com/github/collectiveidea/audited)
=======
**Audited** (previously acts_as_audited) is an ORM extension that logs all changes to your models. Audited also allows you to record who made those changes, save comments and associate models related to the changes.
-Audited currently (4.x release candidate) works with Rails 4. For Rails 3, use gem version 3.0 or see the [3.0-stable branch](https://github.com/collectiveidea/audited/tree/3.0-stable).
+Audited currently (4.x) works with Rails 4. For Rails 3, use gem version 3.0 or see the [3.0-stable branch](https://github.com/collectiveidea/audited/tree/3.0-stable).
## Supported Rubies
Audited supports and is [tested against](http://travis-ci.org/collectiveidea/audited) the following Ruby versions:
@@ -160,10 +160,10 @@
```
Outside of a request, Audited can still record the user with the `as_user` method:
```ruby
-Audit.as_user(User.find(1)) do
+Audited.audit_class.as_user(User.find(1)) do
post.update_attribute!(:title => "Hello, world!")
end
post.audits.last.user # => #<User id: 1>
```