Skip to content

Commit

Permalink
README
Browse files Browse the repository at this point in the history
  • Loading branch information
winton committed Jan 26, 2011
1 parent 72b1e6e commit 0ee8655
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Expand Up @@ -41,15 +41,15 @@ end
config/acts\_as\_archive.yml
----------------------------

Create <code>config/acts\_as\_archive.yml</code> to define the archive class and archive table for each of your models:

<pre>
Article:
- class: Article::Archive
table: archived_articles
</pre>

Specify the name of your model, the name of the archive class, and the name of the archive table.

If the archive model is created automatically if it does not exist.
It is expected that neither the archive class or archive table exist yet. <code>ActsAsArchive</code> will create these automatically.

Migrate
-------
Expand Down Expand Up @@ -78,7 +78,7 @@ No action is necessary on your part.
Query the archive
-----------------

Use the Archive model you specified in the configuration:
Use the archive class you specified in the configuration:

<pre>
Article::Archive.first
Expand Down

0 comments on commit 0ee8655

Please sign in to comment.