Skip to content

Commit

Permalink
Update README
Browse files Browse the repository at this point in the history
Mention Rails 4; use new hash syntax.
  • Loading branch information
noniq committed Jul 4, 2014
1 parent 3eb968b commit ddb07b1
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# da-has_token

A token generator for Rails 3 and Active Record.
A token generator for Rails 3 and Active Record (also works with Rails 4).

## Installation

Put the following gem requirement in your `Gemfile`:

gem "da-has_token", "~> 1.0.1"
gem "da-has_token"

## Usage

Expand All @@ -18,10 +18,10 @@ class Entry < ActiveRecord::Base
has_token

# Use custom token size
# has_token :size => 25
# has_token size: 25

# Use custom set of characters
# has_token :chars => "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
# has_token chars: "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
end
```

Expand All @@ -31,4 +31,4 @@ A `NoMoreTokens` error is raised if a new unique token can not be generated with

There are similar plugins providing more features configuration options, e.g. https://github.com/mindbox/has_token.

This project is released under the MIT license.
This project is released under the MIT license.

0 comments on commit ddb07b1

Please sign in to comment.