lib/make_voteable/voteable.rb in make_voteable-0.0.2 vs lib/make_voteable/voteable.rb in make_voteable-0.1.0
- old
+ new
@@ -1,8 +1,12 @@
module MakeVoteable
module Voteable
extend ActiveSupport::Concern
+ included do
+ has_many :votings, :class_name => "MakeVoteable::Voting", :as => :voteable
+ end
+
module ClassMethods
def voteable?
true
end
end