
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
This gem adds integration between ActiveAdmin and Reform. So you may use form objects for your forms.
The purpose of this gem is to provide ability to define custom ActiveAdmin-specific validations for your models. Using form objects allows you to define such validations without cluttering model's code and simplifies building test objects.
Add this line to your application's Gemfile:
gem 'activeadmin-reform'
And then execute:
$ bundle
Or install it yourself as:
$ gem install activeadmin-reform
Define your form object and include our mixin (ActiveAdmin::Reform::ActiveRecord
) into it:
require 'reform'
class AuthorForm < Reform::Form
include ActiveAdmin::Reform::ActiveRecord
model :author
property :last_name, validates: { presence: true }
property :name
end
Specify form class for ActiveAdmin resource:
ActiveAdmin.resource Author do
form_class AuthorForm
form do |f|
f.semantic_errors(*f.object.errors.keys)
f.inputs do
f.input :name
f.input :last_name
end
f.actions
end
end
Now ActiveAdmin will use Reform form object to validate form. Note, you must explicitly define form for resource.
By default ActiveAdmin will not use Reform, but if you want to reopen resource and
disable form object usage, pass false
instead of class:
ActiveAdmin.resource Author do
form_class false
end
The contributing guide is a good place to start.
The gem is available as open source under the terms of the MIT License.
FAQs
Unknown package
We found that activeadmin-reform 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
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.