Sha256: 5cd393890c27a55414f640c25bbc39162d94cc6dd2989ec1584b767f97ba8eec
Contents?: true
Size: 403 Bytes
Versions: 2
Compression:
Stored size: 403 Bytes
Contents
require 'partisan' require 'rails' module Partisan class Railtie < Rails::Railtie initializer "follows.active_record" do |app| ActiveSupport.on_load :active_record do def self.acts_as_follower self.send :include, Partisan::Follower end def self.acts_as_followable self.send :include, Partisan::Followable end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
partisan-0.1.1 | lib/partisan/railtie.rb |
partisan-0.1 | lib/partisan/railtie.rb |