Sha256: c3e410ded224d931b0c811cbfebf1d7f0fd2c2ab36bdb22e416b87c6c147a58b

Contents?: true

Size: 317 Bytes

Versions: 3

Compression:

Stored size: 317 Bytes

Contents

require 'acts_as_follower'
require 'rails'

module ActsAsFollower
  class Railtie < Rails::Railtie

    initializer "acts_as_follower.active_record" do |app|
      ActiveSupport.on_load :active_record do
        include ActsAsFollower::Follower
        include ActsAsFollower::Followable
      end
    end

  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
acts_as_follower-0.2.1 lib/acts_as_follower/railtie.rb
acts_as_follower-0.2.0 lib/acts_as_follower/railtie.rb
acts_as_follower-0.1.1 lib/acts_as_follower/railtie.rb