
Security News
CISA’s 2025 SBOM Guidance Adds Hashes, Licenses, Tool Metadata, and Context
CISA’s 2025 draft SBOM guidance adds new fields like hashes, licenses, and tool metadata to make software inventories more actionable.
Active Record Inspector - extend rails project to easily display and navigate through ActiveRecord Models. Ari will display model data including columns, relations (has and belongs) and custom functions. It's easy to customize and extend Ari for your purposes.
Install 'ari' gem:
gem 'ari'
or
gem 'ari', :git => git://github.com/ATLANTBH/ari.git
Note: Currently ari was tested only on rails 3.0+
After installation run ari generator.
rails generate ari
Add following resource to routes.rb.
resources :ari, :only => [:index, :show]
Run rails and point your browser to ari route, e.g. http://localhost:3000/ari
By default ari will display following information from model:
You can exclude informations via ari_options
class User < ActiveRecord::Base
ari_options :exclude => [:password, :money]
end
This will exclude columns/relations names 'password' and 'money' from displaying.
In addition to excluding, sometimes is good idea to include results from some functions, e.g.
class User < ActiveRecord::Base
ari_options :exclude => [:password, :money], :functions => ['displayable_name']
def displayable_name
return self.name || self.email # if name is nil return email as displayable_name
end
end
Here is preview of ari:
Model listing Sample table 1 Sample table 2
Copyright 2012 AtlantBH
ari is licensed under the MIT License.
For more info see MIT_LICENSE file.
FAQs
Unknown package
We found that ari 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
CISA’s 2025 draft SBOM guidance adds new fields like hashes, licenses, and tool metadata to make software inventories more actionable.
Security News
A clarification on our recent research investigating 60 malicious Ruby gems.
Security News
ESLint now supports parallel linting with a new --concurrency flag, delivering major speed gains and closing a 10-year-old feature request.