acts_as_votable 0.0.4 → 0.0.5

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.
@@ -1,3 +1,3 @@
1
1
  module ActsAsVotable
2
- VERSION = "0.0.4"
2
+ VERSION = "0.0.5"
3
3
  end
@@ -22,12 +22,14 @@ module ActsAsVotable
22
22
  votes = find_votes(:votable_id => votable.id, :votable_type => votable.class.name)
23
23
  votes.size > 0
24
24
  end
25
+ alias :voted_for? :voted_on?
25
26
 
26
27
  def voted_as_when_voting_on votable
27
28
  votes = find_votes(:votable_id => votable.id, :votable_type => votable.class.name)
28
29
  return nil if votes.size == 0
29
30
  return votes.first.vote_flag
30
31
  end
32
+ alias :voted_as_when_voting_for :voted_as_when_voting_on
31
33
 
32
34
  def find_votes extra_conditions = {}
33
35
  ActsAsVotable::Vote.find(:all, :conditions => default_conditions.merge(extra_conditions))
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 0
8
- - 4
9
- version: 0.0.4
8
+ - 5
9
+ version: 0.0.5
10
10
  platform: ruby
11
11
  authors:
12
12
  - Ryan