Skip to content

Latest commit

 

History

History
57 lines (33 loc) · 1.25 KB

CHANGELOG.md

File metadata and controls

57 lines (33 loc) · 1.25 KB

Unreleased

1.0.1

  • Use as: for polymorphic associations
  • Add tests against Rails 7.1, 7.2, 8.0 and Rails main

1.0.0

  • Require Rails 7.1+ for normalizes support

0.5.3

  • Only set ReferralCode#code if it is blank #20

0.5.2

  • Move controller constant to lib

0.5.1

  • Fixes HasReferrals constant lookup

0.5.0

  • Add Refer.referral_completed = ->(referral) { } callback that runs when a referral is marked as completed
  • referral.complete! does nothing if already completed

0.4.0

  • Add completed scope to Refer::Referral

0.3.0

  • Add visit tracking #5
  • Configurable referral cookie overwrites #4 Choose between the original referral code or the most recent referral code to receive the referral
  • Fix referral code default generator

0.2.1

  • Change migrations to use Rails 6.1 version for compatibility

0.2.0

  • Add set_referral_cookie controller method
  • Add rails g refer:install generator to inject set_referral_cookie

0.1.1

  • Added dependent: :nullify so ReferralCodes persist Referral records when deleted.
  • Added dependent: :destroy so Referrals and ReferralCodes are deleted when users are deleted.
  • Fixed missing referral_codes association on users

0.1.0

  • Initial release