A simple referral library.
Add this line to your application's Gemfile:
gem 'referrari'
And then execute:
$ bundle
Or install it yourself as:
$ gem install referrari
Run the migrations in your app
rake app:referrari:install:migrations
The user model is expected.
class User < ActiveRecord::Base
include Referrari::User
end
Fork it ( github.com/[my-github-username]/referrari/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