Sha256: 2294ab070e515a2c63c2fb3ad34f5f9234b922f492f19d2bb67fe3917d292cd0
Contents?: true
Size: 301 Bytes
Versions: 2
Compression:
Stored size: 301 Bytes
Contents
module FlexibleFeeds module ActsAsVoter extend ActiveSupport::Concern module ClassMethods def acts_as_voter(options = {}) has_many :votes, as: :voter, class_name: "FlexibleFeeds::Vote" end end end end ActiveRecord::Base.send :include, FlexibleFeeds::ActsAsVoter
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
flexible_feeds-0.4.0 | lib/flexible_feeds/acts_as_voter.rb |
flexible_feeds-0.3.6 | lib/flexible_feeds/acts_as_voter.rb |