
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.
acts_as_restful_list
Advanced tools
= acts_as_restful_list
It's just like acts_as_list, but instead of having to clutter your code with non-standard method calls like insert_at, acts_as_restful_list makes managing lists simple. You update the position attribute just like you would update anything else and the rest is taken care of for you.
== Features
== Installation #environment.rb config.gem 'acts_as_restful_list'
rake gems:install
== Usage
=== In your model:
class Item < ActiveRecord::Base belongs_to :parent acts_as_restful_list :scope => :parent end
=== Now, simply CRUD away:
item = Item.create item.position # 1
item2 = Item.create item.position # 2
item3 = Item.create item.position # 3
item.destroy item2.position # 1 item3.position # 2
item3.position = 1 item3.save item3.position # 1 item2.position # 2
different_parent = Item.create(:parent_id => 1) different_parent.position # 1
And that's that.
Report issues at http://github.com/12spokes/acts_as_restful_list/issues
== Note on Patches/Pull Requests
== Copyright
Copyright (c) 2010 '12 Spokes'. See LICENSE for details.
FAQs
Unknown package
We found that acts_as_restful_list demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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.