
Security News
Nx npm Packages Compromised in Supply Chain Attack Weaponizing AI CLI Tools
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.
elight-acts_as_commentable_with_threading
Advanced tools
Allows for threaded comments to be added to multiple and different models. Drop-in compatible for acts_as_commentable (however requiring a database schema change)
== Resources
Install
Rails
script/plugin install http://github.com/jackdempsey/acts_as_commentable
Merb/Rails
rake install
def self.up create_table "comments", :force => true do |t| t.integer "commentable_id", :default => 0 t.string "commentable_type", :limit => 15, :default => "" t.string "title", :default => "" t.text "body", :default => "" t.string "subject", :default => "" t.integer "user_id", :default => 0, :null => false t.integer "parent_id" t.integer "lft" t.integer "rgt" t.timestamps end
add_index "comments", "user_id"
add_index "comments", "commentable_id"
end
def self.down drop_table :comments end
== Usage class Model < ActiveRecord::Base acts_as_commentable_with_threading end
model = Model.new comment = Comment.new(:model => model, :body => "Your comment text here") comment.save! comment.move_to_child_of(the_desired_parent_comment)
== Credits
Jack Dempsey - This plugin/gem is heavily influenced/liberally borrowed/stole from acts_as_commentable
which in turn credits....
Xelipe - Because acts_as_commentable was heavily influenced by Acts As Taggable.
== More
FAQs
Unknown package
We found that elight-acts_as_commentable_with_threading 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
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.
Security News
CISA’s 2025 draft SBOM guidance adds new fields like hashes, licenses, and tool metadata to make software inventories more actionable.
Security News
A clarification on our recent research investigating 60 malicious Ruby gems.