Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
active_admin_associations
Advanced tools
A dropdown menu for your ActiveRecord relations between ActiveAdmin Resources.
Only builds properly for has_many
associations right now because I assume you're already direcly linking to the appropriate resource for belongs_to
with Arbre.
Add this line to your application's Gemfile:
gem 'active_admin_associations'
And then execute:
$ bundle
Or install it yourself as:
$ gem install active_admin_associations
This is pretty opinionated right now.
In a resource file in an ActiveAdmin namespace, open user.rb
and add has_many :orders
inside the register
block. This will create an action_item
for the show/edit actions that renders a dropdown menu with a link to the Orders associated with the current resource ID.
Add association_items
anywhere on the resource page to display the dropdown.
This does not do anything else. It does not mean to do anything else. It doesn't hit ActiveRecord or check to see that your Order
resource actually exists inside ActiveAdmin. It simply builds a link to the assumed Ransack query URL.
Use as
to change the label. Defaults to class.model_name.plural
Bug reports and pull requests are welcome on GitHub at https://github.com/joshmn/active_admin_associations.
FAQs
Unknown package
We found that active_admin_associations 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
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.