0.0
No commit activity in last 3 years
No release in over 3 years
Adds token-based finders to ActiveRecord
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.3
~> 5.1
> 10.1.0, ~> 10.1
>= 1.3.3, ~> 1.3

Runtime

< 5.0, >= 3.0
>= 1.0.0, ~> 1.0
 Project Readme

# 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

  1. Create an issue

  2. Fork it ( github.com/arktisklada/tokenizr/fork )

  3. Create your feature branch (‘git checkout -b my-new-feature`)

  4. Commit your changes (‘git commit -am ’Add some feature’‘)

  5. Push to the branch (‘git push origin my-new-feature`)

  6. Create a new Pull Request