
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.
Golden Retriever automatically retrieves resources from the database for actions/controllers that follow rest conventions.
Instructions:
script/plugin git://github.com/DouglasMeyer/golden_retriever.git And add "require GoldenRetriever" to the controllers for which you want your resources automatically retrieved, and the resoures will be loaded under their names. You can also define "resource_find_method" to specify a different find method (like :find_by_name).
Example:
ActionController::Routing::Routes.draw do |map| map.resources :users, :has_many => :posts end
class PostsController < ApplicationController require GoldenRetriever
def index # @posts will be the same as @user.posts render :json => @posts end def show # @post will be the same as @user.posts.find(params[:id]) render :json => @post end def new # @post will be the same as @user.posts.build render :json => @post end
private
def resource_find_method(model_name) model_name == 'post' ? :find_by_name : :find end
end
FAQs
Unknown package
We found that golden_retriever 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.