Sha256: ffdb4c3c6f8af6b2f6275713d7d7a35a7bbbab9e46d7dfb80b0cf037e3934177
Contents?: true
Size: 810 Bytes
Versions: 1
Compression:
Stored size: 810 Bytes
Contents
= MuckShares Add sharing functionality to your muck application. Items are shared into the user's activity feed as well as the dashboard activity feed of any users that following or friends with the current user. == Setup Add the gem to your gemfile: gem 'muck-shares', :require => 'muck_shares' == Usage === Share model Create a model called share in your project and add the following: class Share < ActiveRecord::Base acts_as_muck_share end This let's you add any other methods to the share model that you see fit. === User model You will need a user model that will do the sharing: class User < ActiveRecord::Base acts_as_muck_sharer end MuckShares will look for 'current_user' when adding new shares. Copyright (c) 2009-2010 Muck your app, released under the MIT license
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
muck-shares-3.0.0 | README.rdoc |