Sha256: 41846aefe801ce3242df23f944758b05fcad9c4b12878ed579199e162d2f5113
Contents?: true
Size: 660 Bytes
Versions: 1
Compression:
Stored size: 660 Bytes
Contents
require "partisan/version" require "active_record" require "partisan/follow" require "partisan/follow_helper" require "partisan/follower" require "partisan/followable" module Partisan include Partisan::FollowHelper def self.inject_into_active_record @inject_into_active_record ||= Proc.new do def self.acts_as_follower self.send :include, Partisan::Follower end def self.acts_as_followable self.send :include, Partisan::Followable end def self.acts_as_follow self.send :include, Partisan::Follow end end end end ActiveRecord::Base.class_eval(&Partisan.inject_into_active_record)
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
partisan-0.4 | lib/partisan.rb |