Low commit activity in last 3 years
A long-lived project that still receives updates
Add support to search through (potentially large) belongs_to associations in your Administrate dashboards.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 13.0
~> 3.4
~> 0.76.0
~> 1.3

Runtime

>= 0.3, < 1.0
>= 4.2, < 7.2
 Project Readme

Administrate::Field::BelongsToSearch

Build Status Gem Version Coverage Status

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

Usage

Add it to your Gemfile:

gem 'administrate-field-belongs_to_search'

Run bundler to install:

bundle install

Add it to your Administrate dashboard, for instance:

class PostDashboard < Administrate::BaseDashboard
  ATTRIBUTE_TYPES = {
    author: Field::BelongsToSearch.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

This plugin is Copyright © 2017 Fishbrain AB. It is licensed under the MIT license. See LICENSE for details.

Screenshot

Screenshot

========

Fishbrain AB

This plugin is maintained by Fishbrain AB.

At Fishbrain, we're passionate about the outdoors and conservation. Together, we work to bring you the best app for fishing, hands down.

If you love working with amazing and talented people in tight-knit teams, join us!