Sha256: 9ee8ef344d8066d9fbd78f31009f0ee08892c49c49f274ed54b16331880c457b

Contents?: true

Size: 358 Bytes

Versions: 8

Compression:

Stored size: 358 Bytes

Contents

require "active_record"

# Namespace for classes and modules that handle friendship related tasks
#
# @author Justin Chapman
module Popular

  if defined? ActiveRecord::Base
    require "popular/extenders/popular"
    require "popular/friendship"

    # Extend ActiveRecord with extenders
    ActiveRecord::Base.extend Popular::Extenders::Popular
  end

end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
popular-0.7.4 lib/popular.rb
popular-0.7.3 lib/popular.rb
popular-0.7.2 lib/popular.rb
popular-0.7.1 lib/popular.rb
popular-0.7.0 lib/popular.rb
popular-0.6.0 lib/popular.rb
popular-0.5.1 lib/popular.rb
popular-0.5.0 lib/popular.rb