Doppel
Doppel provides convenience scopes on your ActiveRecord Models for finding similar or exact records.
Compatible with ActiveRecord 4.0
, 4.1
, 4.2
, 5.0
, 5.1
Usage
Add this line to your application's Gemfile:
gem 'doppel'
And then execute:
$ bundle
Or install it yourself as:
$ gem install doppel
Application Code
Doppel is automatically available to your ActiveRecord Models
class User < Account
# ...
end
User.find_similar(:name)
Contributing
- Fork it ( https://github.com/TwilightCoders/active_record-mti/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