Add Rails 3 / 2.3 instructions to README.
This commit is contained in:
parent
308935c4d0
commit
842e702b94
|
@ -26,7 +26,7 @@ PaperTrail lets you track changes to your models' data. It's good for auditing
|
||||||
|
|
||||||
## Rails Version
|
## Rails Version
|
||||||
|
|
||||||
Works on Rails 3 and Rails 2.3. Probably works on Rails 2.2 and 2.1.
|
Works on Rails 3 and Rails 2.3. The Rails 3 code is on the master branch and tagged v2.x. The Rails 2.3 code is on the Rails 2 branch and tagged 1.x.
|
||||||
|
|
||||||
|
|
||||||
## API Summary
|
## API Summary
|
||||||
|
@ -490,7 +490,7 @@ Over time your `versions` table will grow to an unwieldy size. Because each ver
|
||||||
|
|
||||||
1. Install PaperTrail as a gem via your `Gemfile`:
|
1. Install PaperTrail as a gem via your `Gemfile`:
|
||||||
|
|
||||||
`gem 'paper_trail'`
|
`gem 'paper_trail', '~> 2'`
|
||||||
|
|
||||||
2. Generate a migration which will add a `versions` table to your database.
|
2. Generate a migration which will add a `versions` table to your database.
|
||||||
|
|
||||||
|
@ -506,7 +506,7 @@ Over time your `versions` table will grow to an unwieldy size. Because each ver
|
||||||
|
|
||||||
1. Install PaperTrail as a gem via your `config/environment.rb`:
|
1. Install PaperTrail as a gem via your `config/environment.rb`:
|
||||||
|
|
||||||
`config.gem 'paper_trail'`
|
`config.gem 'paper_trail', :version => '~> 1'`
|
||||||
|
|
||||||
2. Generate a migration which will add a `versions` table to your database.
|
2. Generate a migration which will add a `versions` table to your database.
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue