15 lines
445 B
Ruby
15 lines
445 B
Ruby
require "acts_as_followable/version"
|
|
|
|
module ActsAsFollowable
|
|
extend ActiveSupport::Autoload
|
|
autoload :Followable, 'acts_as_followable/followable'
|
|
autoload :FollowableExt, 'acts_as_followable/followable_ext'
|
|
|
|
# require 'acts_as_followable/railtie' if defined?(Rails) && Rails::VERSION::MAJOR >= 3
|
|
ActiveSupport.on_load(:active_record) do
|
|
include ActsAsFollowable::Followable
|
|
include ActsAsFollowable::Follower
|
|
end
|
|
|
|
end
|