refer 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d15eaaaf713682be3a0baa1dcf1a8152d5e26fd21e3efd979c94446811b2b015
4
- data.tar.gz: 7e073982ea5562f86928538e6e75f1283a01c8f16ce094c9097a86b30c6fe344
3
+ metadata.gz: bde22f4ffb206d7186ae2426170e1e321698faa890263ec441a1591694765580
4
+ data.tar.gz: c3e1d75252657910068d342e12433220a99a6097431cdf984b9fd120133296b7
5
5
  SHA512:
6
- metadata.gz: b0fcd6b0b868db46dbd2f874f0677e3473bf718b16878aa45cd1cce36e814e340072fe8a26ebc4602479d48f383d2bd882724f3726e36be3c62b6074f29ab6cb
7
- data.tar.gz: ae3f4f3a5edeef1cbd0951f65c984c32e7b6f75bd93118f57c19332611ec3972f33ad4de3ce02943bcf179e8d5067166c568c15eeeedb3df7c3f52addb9f4a3c
6
+ metadata.gz: 8938f27931aa94c8215924c0289a2c995a8504d574626e171f596a3e3f221851dc1ac933bd66aac1795bd98fafc0c64658d9a2cc7b181d7e7a3c6ba61fe9a3f1
7
+ data.tar.gz: 94f3bdeff953bd1c41afb13b6a18f893eae3189d845ac69d8203f2cdac89c511cac6976b209799b2c9bdb41ad9ef6a24e1602496c96b37c2f90600c526fc97ca
data/lib/refer/model.rb CHANGED
@@ -3,9 +3,9 @@ module Refer
3
3
  extend ActiveSupport::Concern
4
4
 
5
5
  included do
6
- has_many :referral_codes, inverse_of: :referrer, class_name: "Refer::ReferralCode", dependent: :destroy
7
- has_many :referrals, inverse_of: :referrer, class_name: "Refer::Referral", dependent: :destroy
8
- has_one :referral, inverse_of: :referee, class_name: "Refer::Referral", dependent: :destroy
6
+ has_many :referral_codes, as: :referrer, class_name: "Refer::ReferralCode", dependent: :destroy
7
+ has_many :referrals, as: :referrer, class_name: "Refer::Referral", dependent: :destroy
8
+ has_one :referral, as: :referee, class_name: "Refer::Referral", dependent: :destroy
9
9
  delegate :referrer, to: :referral
10
10
  end
11
11
  end
data/lib/refer/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Refer
2
- VERSION = "1.0.0"
2
+ VERSION = "1.0.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: refer
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Oliver
@@ -75,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
75
75
  - !ruby/object:Gem::Version
76
76
  version: '0'
77
77
  requirements: []
78
- rubygems_version: 3.5.22
78
+ rubygems_version: 3.5.23
79
79
  signing_key:
80
80
  specification_version: 4
81
81
  summary: Referral codes & affiliate links for Ruby on Rails apps