# TokenizrRails
Implementation of [Tokenizr](github.com/arktisklada/tokenizr) as an ActiveRecord function
By default, uses the ‘id` column for any object. To add to a model, call `tokenize` as a class method.
For example:
“‘ class User < ActiveRecord::Base
tokenize
end “‘
The class will respond to ‘find_by_token` and supplement the default `ActiveRecord#find` method to allow for decoding and finding by a token.
To find a model’s token, query the object using ‘#token`
“‘ User.first.token “`
## Contributing
-
Create an issue
-
Fork it ( github.com/arktisklada/tokenizr/fork )
-
Create your feature branch (‘git checkout -b my-new-feature`)
-
Commit your changes (‘git commit -am ’Add some feature’‘)
-
Push to the branch (‘git push origin my-new-feature`)
-
Create a new Pull Request