Socket
Book a DemoInstallSign in
Socket

administrate-field-has_many_search

Package Overview
Dependencies
Maintainers
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

administrate-field-has_many_search

bundlerRubygems
Version
0.2.1
Version published
Maintainers
2
Created
Source

Administrate::Field::HasManySearch

A plugin to search through has_many associations in thoughtbot's Administrate Rails engine.

Usage

Add it to your Gemfile:

gem 'administrate-field-has_many_search'

Run bundler to install:

bundle install

Add it to your Administrate dashboard, for instance:

class PostDashboard < Administrate::BaseDashboard
  ATTRIBUTE_TYPES = {
    authors: Field::HasManySearch.with_options(class_name: 'User')
  }
# ...

With this, you should be good to go!

Develop and Contribute

Fork and clone the repo. Install dependencies and run test using:

bundle install
bundle exec rake

Then, implement your feature/fix, write a good commit message and submit a pull request to this repository. If you only have some feedback or are unsure about how to do something, you're welcome to submit an issue.

This is meant to be an welcoming and friendly place for collaboration. Therefore, all contributors are expected to adhere to the Contributor Covenant Code of Conduct.

License

It is licensed under the MIT license. See LICENSE for details.

Screenshot

Screenshot

Credits

I have to give much credit to Fishbrain AB This was not only inspired, but shamelessly copy-pasted from here for convenience, many thanks guys :)

FAQs

Package last updated on 13 Jan 2025

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