dm-is-voteable 0.0.2 → 0.0.3
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.
- data/Rakefile +1 -1
- data/dm-is-voteable.gemspec +1 -1
- data/lib/dm-is-voteable/is/models/vote.rb +1 -1
- data/lib/dm-is-voteable/is/voteable.rb +1 -1
- metadata +2 -2
data/Rakefile
CHANGED
@@ -2,7 +2,7 @@ require 'rubygems'
|
|
2
2
|
require 'rake'
|
3
3
|
require 'echoe'
|
4
4
|
|
5
|
-
Echoe.new('dm-is-voteable', '0.0.
|
5
|
+
Echoe.new('dm-is-voteable', '0.0.3') do |p|
|
6
6
|
p.description = "Makes a model voteable"
|
7
7
|
p.url = "http://github.com/brianp/dm-is-voteable"
|
8
8
|
p.author = "Brian Pearce"
|
data/dm-is-voteable.gemspec
CHANGED
@@ -16,7 +16,7 @@ class Vote
|
|
16
16
|
validates_with_method :no_vote_in_3_days
|
17
17
|
|
18
18
|
def no_vote_in_3_days
|
19
|
-
Vote.count(:voter => voter, :created_on.gt =>
|
19
|
+
Vote.count(:voter => voter, :created_on.gt => 3.days.ago) == 0
|
20
20
|
end
|
21
21
|
|
22
22
|
# belongs_to :voteable, :voteable_id
|