![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
A simple plugin that allows to keep history records of the users 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."
script/plugin install git://github.com/linkingpaths/acts_as_scribe.git
script/generate acts_as_scribe_migration
rake db:migrate
class Comment < ActiveRecord::Base record_activity_of :user end
You can use any association that is related to an user:
class Post < ActiveRecord::Base belongs_to :author, :class_name => "User" record_activity_of :author end
This will register automatically a new activity when you create or destroy a new record. If you want control over the activities registration based on your model's state just use the :if option
class Post < ActiveRecord::Base belongs_to :author, :class_name => "User" record_activity_of :author, :if => Proc.new { |post| post.private == false } end
If you want to record activities not related to any specific model just use Activity.report
in your code:
def grant_admin(user) user.admin = true Activity.report(current_user, :grant_admin, user) end
If the action is not related to any item, just don't use it.
def login current_user = User.find(…) Activity.report(current_user, :login) end
http://github.com/linkingpaths/acts_as_scribe
http://github.com/linkingpaths/acts_as_scribe/wikis
Copyright (c) 2008 Linking Paths, released under the MIT license
FAQs
Unknown package
We found that acts_as_scribe demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.