Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Social stalking made easy
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
app
config
lib
script
spec
.gitignore
Gemfile
Gemfile.lock
MIT-LICENSE
README.rdoc
Rakefile
stalker.gemspec

README.rdoc

Stalker

To use the gem simply added the following to your Gemfile

gem 'stalker'

The gem is still in alpha so expect the unexpected.

To setup stalking like functionality just add the following to your User model

include Stalker

has_and_belongs_to_many :followers, :autosave => true, :dependent => true, :class_name => 'User', :inverse_of => :following
has_and_belongs_to_many :following, :autosave => true, :dependent => true, :class_name => 'User', :inverse_of => :followers

Doing so will make your model a stalker :D

Enjoy

This project rocks and uses MIT-LICENSE.

Something went wrong with that request. Please try again.