acts_as_votable 0.7.0 → 0.7.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 761f4de1f6cb69440c40761f9a73bf33ebd0d626
4
- data.tar.gz: 531c9e70b810c33a8855021f05e1cbf6a2fe6053
3
+ metadata.gz: a69a2b257a2491f945b09323a74472bdfb80c1f7
4
+ data.tar.gz: 64a63524853816cb82a01adfe3f5b7abc536889b
5
5
  SHA512:
6
- metadata.gz: bf5fc76011445515ae9ad68617af57c24ba660e1c8341fb360ee2874b4966ca644c3c9d337d0726b6fb29c59a8a6bb1f68b591975417245f10a2e683df05ff91
7
- data.tar.gz: 2113bdcec62e87a3fb88bc97bd3b7b3bd1cf67d098b0502b26c41590cdf8ea1f2e1780cd5c63d14c75084422d2039f947cc09761ff4e405e423d035f57054c79
6
+ metadata.gz: 41be950836d6d092d91dd0fb2ad75a84bfb6c6d7db910d4b5c92c7e945bae1e47ccf839992104b8781b46f3e8a203fa1d34a3c78acf7eb8b613e5784926822c3
7
+ data.tar.gz: 4a02b443a7cf410a8d114180a04cb7ca872334de4f0809047f4c8081a56a44ea5cd44f6dba098043fb20d99701b41febd2e60efb347f882325b9b1e6d47b7751
@@ -18,7 +18,7 @@ The main goals of this gem are:
18
18
  Just add the following to your Gemfile.
19
19
 
20
20
  ```ruby
21
- gem 'acts_as_votable', '~> 0.7.0'
21
+ gem 'acts_as_votable', '~> 0.7.1'
22
22
  ```
23
23
 
24
24
  And follow that up with a ``bundle install``.
@@ -1,3 +1,3 @@
1
1
  module ActsAsVotable
2
- VERSION = "0.7.0"
2
+ VERSION = "0.7.1"
3
3
  end
@@ -33,9 +33,7 @@ module ActsAsVotable
33
33
  }
34
34
 
35
35
  base.class_eval do
36
-
37
- belongs_to :votable, :polymorphic => true
38
- has_many :votes, :class_name => "ActsAsVotable::Vote", :as => :votable do
36
+ has_many :votes, :class_name => "ActsAsVotable::Vote", :as => :votable do
39
37
  def voters
40
38
  includes(:voter).map(&:voter)
41
39
  end
@@ -18,7 +18,6 @@ module ActsAsVotable
18
18
 
19
19
  base.class_eval do
20
20
 
21
- belongs_to :voter, :polymorphic => true
22
21
  has_many :votes, :class_name => "ActsAsVotable::Vote", :as => :voter do
23
22
  def votables
24
23
  includes(:votable).map(&:votable)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: acts_as_votable
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.0
4
+ version: 0.7.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryan