Sha256: 8748772b54fe6f0864d0a78e46993919b783a61298c17653adb0a4524c2f0628

Contents?: true

Size: 305 Bytes

Versions: 2

Compression:

Stored size: 305 Bytes

Contents

require 'rails'

module FollowableBehaviour
  class Railtie < Rails::Railtie

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

  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
followable_behaviour-0.2.0 lib/followable_behaviour/railtie.rb
followable_behaviour-0.1.0 lib/followable_behaviour/railtie.rb