
Research
/Security News
Shai Hulud Strikes Again (v2)
Another wave of Shai-Hulud campaign has hit npm with more than 500 packages and 700+ versions affected.
qtousart-sortable_pictures
Advanced tools
sortable_pictures
You can manage & sort pictures
== Model class Model < ActiveRecord::Base sortable_pictures end
== Controller def create @model = Model.find params[:id] picture = Picture.new params[:picture] if picture.save sortable_pictures = picture.sortable_pictures.new sortable_picture.picturable = @model sortable_picture.save end end
== View <% @model.pictures.each do |picture| %> <%= image_tag(picture.public_filename :thumb) %> <% end %>
== initializers in RAILS_ROOT + config/initializers/sortable_pictures.rb
module SortablePictures def self.options { :storage => :file_system, :file_system_path => 'public/images/sortable_pictures', :content_type => 'image', :thumbnails => { :big => '500x500', :normal => '200x200', :small => '100x100', :thumb => '50x50' } } end end
FAQs
Unknown package
We found that qtousart-sortable_pictures 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.

Research
/Security News
Another wave of Shai-Hulud campaign has hit npm with more than 500 packages and 700+ versions affected.

Product
Add real-time Socket webhook events to your workflows to automatically receive software supply chain alert changes in real time.

Security News
ENISA has become a CVE Program Root, giving the EU a central authority for coordinating vulnerability reporting, disclosure, and cross-border response.