New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

active_admin-acts_as_list

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

active_admin-acts_as_list

  • 0.0.8
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

= ActiveAdminActsAsList

= Purpose

Add sortable columns for active admin.

= Features

  • Add member actions with one method call
  • Add sorting columns in your index views with one method call.
  • Integrates with acts_as_list

= Prerequisites

You need active_admin and acts_as_list.

= Installation

Add it to your gemfile:

gem 'active_admin-acts_as_list'

Install your bundle:

bundle install

= Usage

Assuming you have a Players model:

class Player < ActiveRecord::Base # acts as list acts_as_list default_scope :order => 'position ASC'

#...

end

You can add sortable columns, member actions and sorting like this:

#app/admin/players.rb ActiveAdmin.register Player do # Sort players by position config.sort_order = 'position'

# Add member actions for positioning.
sortable_member_actions

index do
  # This adds columns for moving up, down, top and bottom.
  sortable_columns
  
  #...
  column :firstname
  column :lastname
  default_actions
end

end

= Todo

  • Tests, tests, tests.
  • Better docs.

= License

This project rocks and uses MIT-LICENSE.

FAQs

Package last updated on 11 Oct 2015

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc