Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/carakan/scribe_polymorfic
A simple plugin that allows to keep track of the models activity, this a polymorfhic activity tracker
https://github.com/carakan/scribe_polymorfic
Last synced: 15 days ago
JSON representation
A simple plugin that allows to keep track of the models activity, this a polymorfhic activity tracker
- Host: GitHub
- URL: https://github.com/carakan/scribe_polymorfic
- Owner: carakan
- License: mit
- Created: 2009-05-18T17:02:18.000Z (over 15 years ago)
- Default Branch: master
- Last Pushed: 2009-05-19T15:53:21.000Z (over 15 years ago)
- Last Synced: 2023-04-11T13:48:04.217Z (over 1 year ago)
- Language: Ruby
- Homepage:
- Size: 74.2 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.markdown
- License: MIT-LICENSE
Awesome Lists containing this project
README
ActsAsScribe
============
Based in the plugin: http://github.com/linkingpaths/acts_as_scribe/tree/masterA simple plugin that allows to keep history records of the models to models activities. Common uses could be user's wall, public timeline portlets, etc...
> Scribe (From Wikipedia, the free encyclopedia):
"A scribe was traditionally a person who could read and write. This usually indicated secretarial and administrative duties such as dictation and keeping business, judicial, and history records for kings, nobles, temples, and cities."Resources
=========Install
-------
* Run the following command:
`script/plugin install git://github.com/linkingpaths/acts_as_scribe.git`
* Generate the tables via the given generator:`script/generate acts_as_scribe_migration`
* And finally...
`rake db:migrate`
Usage
-----
* Make your ActiveRecord model acts as scribe.
class Comment < ActiveRecord::Base
record_activity_of :user
end* If you want to record activities not related to any specific model just use `record_activities :activity` in your user model:
class User < ActiveRecord::Base
record_activities [:featured_on_home, :logged_in, :logged_out]
end
Or
class Blog < ActiveRecord::Base
record_activities_of :comments
endMore
-------[http://github.com/linkingpaths/acts\_as\_scribe](http://github.com/linkingpaths/acts_as_scribe)
[http://github.com/linkingpaths/acts\_as\_scribe/wikis](http://github.com/linkingpaths/acts_as_scribe/wikis)Copyright (c) 2009 Carakan, released under the MIT license