kudos 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/kudos/version.rb +1 -1
- data/lib/kudos.rb +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ebb7e489ed4526e9167779847225e408094b13bbc0eeb8d9886e91d3dc183fda
|
4
|
+
data.tar.gz: b1ff458db038d7572f2f930c863f43c2c397efd8abb61204c374db406a97f52c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0f0d8e9b3d5d208842c15e2ab726102fa0616e8e1efdfc294444d0001888fa7d17b97da7f252e1c787af3336c7c5b781c195fdb215bbc7a038e8490a50aecfec
|
7
|
+
data.tar.gz: bb59a485c713ca0b9d46fbe3037ae52afc97199dcf91858f5650e7fa07e0e871f092e437a900e2691db63040e52a04e7a1b53479f657ff6e302d00965b9fdf4b
|
data/lib/kudos/version.rb
CHANGED
data/lib/kudos.rb
CHANGED
@@ -36,8 +36,8 @@ module Kudos
|
|
36
36
|
end
|
37
37
|
|
38
38
|
def award(award_name, *attributes)
|
39
|
-
achievements =
|
40
|
-
awards[award_name].call(achievements, *attributes)
|
39
|
+
achievements = Kudos::Achievement.where(award_name: award_name.to_s).order(rank: :asc)
|
40
|
+
configuration.achievements_model_name.awards[award_name].call(achievements, *attributes)
|
41
41
|
end
|
42
42
|
end
|
43
43
|
end
|