thumbs_up 0.4 → 0.4.1
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/acts_as_voteable.rb +1 -2
- metadata +2 -2
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.4
|
1
|
+
0.4.1
|
data/lib/acts_as_voteable.rb
CHANGED
@@ -59,8 +59,7 @@ module ThumbsUp
|
|
59
59
|
t = t.where("joined_#{Vote.table_name}.created_at >= ?", options[:start_at]) if options[:start_at]
|
60
60
|
t = t.where("joined_#{Vote.table_name}.created_at <= ?", options[:end_at]) if options[:end_at]
|
61
61
|
t = t.where(options[:conditions]) if options[:conditions]
|
62
|
-
t = options[:ascending] ? t.order("joined_#{Vote.table_name}.Vote_Total")
|
63
|
-
: t.order("joined_#{Vote.table_name}.Vote_Total DESC")
|
62
|
+
t = options[:ascending] ? t.order("joined_#{Vote.table_name}.Vote_Total") : t.order("joined_#{Vote.table_name}.Vote_Total DESC")
|
64
63
|
|
65
64
|
t = t.having(["COUNT(joined_#{Vote.table_name}.voteable_id) > 0",
|
66
65
|
(options[:at_least] ? "joined_votes.Vote_Total >= #{sanitize(options[:at_least])}" : nil),
|
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: thumbs_up
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version:
|
5
|
+
version: 0.4.1
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Brady Bouchard
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-04-
|
18
|
+
date: 2011-04-04 00:00:00 +10:00
|
19
19
|
default_executable:
|
20
20
|
dependencies: []
|
21
21
|
|