mongoid-letsrate 1.0.11 → 1.0.12
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/mongoid/letsrate/model.rb +2 -1
- data/lib/mongoid/letsrate/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e6d5c3442fb72efc46c8756959bdd40334358b8a
|
4
|
+
data.tar.gz: 777daaa651b5f1df28a281795eca9123021d7f8d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4a61a60e728375be269203a8f059a76045aa8b4bf6089814fe37044a21b91c4af6eb0caddb3c73112b89d7b4e0f08c4114f5205d65a379635fa2dd4316151ae9
|
7
|
+
data.tar.gz: a4c2aeb80476241cb7a9c1f82963db1d8b6bb1217a968ec067705fad240a4480266d36cd24670603a6c32fb4ef351bdb66b45e5e23deba501b53c1fd5491028d
|
data/Gemfile.lock
CHANGED
@@ -55,7 +55,7 @@ module Mongoid
|
|
55
55
|
else
|
56
56
|
a = average
|
57
57
|
a.qty = rates.count
|
58
|
-
a.avg =
|
58
|
+
a.avg = average(:stars)
|
59
59
|
a.save!(validate: false)
|
60
60
|
end
|
61
61
|
end
|
@@ -69,6 +69,7 @@ module Mongoid
|
|
69
69
|
def letsrate_rater
|
70
70
|
has_many :ratings_given, :class_name => 'Rate'
|
71
71
|
belongs_to :rater
|
72
|
+
belongs_to :average
|
72
73
|
end
|
73
74
|
|
74
75
|
def letsrate_rateable
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mongoid-letsrate
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.12
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michael Johann
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2014-02-
|
12
|
+
date: 2014-02-24 00:00:00.000000000 Z
|
13
13
|
dependencies: []
|
14
14
|
description: Provides the best solution to add rating functionality to your models using mongoid.
|
15
15
|
email:
|