thumbs_up 0.4 → 0.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. data/VERSION +1 -1
  2. data/lib/acts_as_voteable.rb +1 -2
  3. metadata +2 -2
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.4
1
+ 0.4.1
@@ -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: "0.4"
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-01 00:00:00 +10:00
18
+ date: 2011-04-04 00:00:00 +10:00
19
19
  default_executable:
20
20
  dependencies: []
21
21