voteable-acandael 0.0.0 → 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,5 +1,5 @@
1
1
  # assumes vote association, with a boolean 'vote' column
2
- module Voteable
2
+ module VoteableAcandael
3
3
  def self.included(base)
4
4
  base.send(:include, InstanceMethods)
5
5
  base.extend ClassMethods
@@ -19,7 +19,7 @@ module Voteable
19
19
 
20
20
  module ClassMethods
21
21
  def my_class_method
22
- puts "module's class methods"
22
+ has_many :votes, as: :voteable
23
23
  end
24
24
  end
25
25
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: voteable-acandael
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.0
4
+ version: 0.0.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -17,7 +17,7 @@ executables: []
17
17
  extensions: []
18
18
  extra_rdoc_files: []
19
19
  files:
20
- - lib/voteable.rb
20
+ - lib/voteable-acandael.rb
21
21
  homepage: http://github.com
22
22
  licenses: []
23
23
  post_install_message: