Skip to content

Commit

Permalink
Prep for release 2.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
bryckbost committed Sep 9, 2011
1 parent 41c01dc commit c5bbaea
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
10 changes: 5 additions & 5 deletions README.rdoc
@@ -1,6 +1,6 @@
= acts_as_audited

+acts_as_audited+ is an ActiveRecord extension that logs all changes to your
+acts_as_audited+ is an ActiveRecord extension that logs all changes to your
models in an audits table, with optional revision comments. +acts_as_audited+
has been updated to work with Rails 3, to use it with older version of Rails,
please see the <tt>1.1-stable</tt> branch.
Expand All @@ -9,7 +9,7 @@ please see the <tt>1.1-stable</tt> branch.

In <tt>Gemfile</tt>:

gem "acts_as_audited", "2.0.0.rc7"
gem "acts_as_audited", "2.0.0"

In your application root, run:

Expand Down Expand Up @@ -53,9 +53,9 @@ Declare +acts_as_audited+ on your models:
acts_as_audited :except => [:password, :mistress]
end

Within a web request, will automatically record the user that made the change if your controller has a +current_user+ method. Comments can be added to an audit by setting <tt>model.audit_comments</tt>
before create/update/destroy. If the <tt>:comment_required</tt> option is given to +acts_as_audited+,
the save/update/destroy action will fail with add an error on <tt>model.audit_comment</tt> and triggering a
Within a web request, will automatically record the user that made the change if your controller has a +current_user+ method. Comments can be added to an audit by setting <tt>model.audit_comments</tt>
before create/update/destroy. If the <tt>:comment_required</tt> option is given to +acts_as_audited+,
the save/update/destroy action will fail with add an error on <tt>model.audit_comment</tt> and triggering a
transaction rollback if <tt>model.audit_comment</tt> is nil.

To record an audit for an associated model, use the <tt>:associated_with</tt> option.
Expand Down
2 changes: 1 addition & 1 deletion acts_as_audited.gemspec
Expand Up @@ -13,6 +13,6 @@ Gem::Specification.new do |gem|
gem.name = 'acts_as_audited'
gem.summary = %q{ActiveRecord extension that logs all changes to your models in an audits table}
gem.test_files = `git ls-files -- spec/* test/*`.split("\n")
gem.version = "2.0.0.rc7"
gem.version = "2.0.0"
end

2 changes: 1 addition & 1 deletion lib/acts_as_audited.rb
Expand Up @@ -24,7 +24,7 @@

# To get started, please review ActsAsAudited::Auditor::ClassMethods#acts_as_audited
module ActsAsAudited
VERSION = '2.0.0.rc7'
VERSION = '2.0.0'

mattr_accessor :current_user_method
# The method to be called to return the current user for logging in the audits.
Expand Down

0 comments on commit c5bbaea

Please sign in to comment.