tokenizr-rails 0.7.0 → 0.7.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.rdoc +26 -2
- data/lib/tokenizr-rails/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d0a26a9f142056bfb7e1d78c2f41293286c59342
|
4
|
+
data.tar.gz: 677931e8e6349c217130f76dcfe1298626d7423b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fa3c6c4a57068a00a8b6452c5312ef6bd7f89f2b7887ec6375e26618e419e892ea6b336830e0105b449d518369e0007e0ffc9586fa43a47568551e118fbc2413
|
7
|
+
data.tar.gz: 003737d5ff7db1c896c7146b4cf578eab1561512e8bca87cdd468380560cf1dd972262428fed74731cdeb2d917dc35a690184445b78f5ddc0b593a26aec527e1
|
data/README.rdoc
CHANGED
@@ -1,3 +1,27 @@
|
|
1
|
-
|
1
|
+
# TokenizrRails
|
2
2
|
|
3
|
-
|
3
|
+
Implementation of [Tokenizr](https://github.com/arktisklada/tokenizr) as an ActiveRecord function
|
4
|
+
|
5
|
+
By default, uses the `id` column for any object. To add to a model, call `tokenize` as a class method.
|
6
|
+
|
7
|
+
For example:
|
8
|
+
|
9
|
+
```
|
10
|
+
class User < ActiveRecord::Base
|
11
|
+
tokenize
|
12
|
+
end
|
13
|
+
```
|
14
|
+
|
15
|
+
The class will respond to `find_by_token` and supplement the default `ActiveRecord#find` method to allow
|
16
|
+
for decoding and finding by a token.
|
17
|
+
|
18
|
+
---
|
19
|
+
|
20
|
+
## Contributing
|
21
|
+
|
22
|
+
1. Create an issue
|
23
|
+
2. Fork it ( https://github.com/arktisklada/tokenizr/fork )
|
24
|
+
3. Create your feature branch (`git checkout -b my-new-feature`)
|
25
|
+
4. Commit your changes (`git commit -am 'Add some feature'`)
|
26
|
+
5. Push to the branch (`git push origin my-new-feature`)
|
27
|
+
6. Create a new Pull Request
|