
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.
ActiveModel + Redis with the aim to mimic ActiveRecord where possible.
Modis 4.0+ supports Rails 5.2 and higher, including Rails 6.1, as well as Ruby 2.3 and above, including Ruby 3.0. Tests are also being run with JRuby. For details please check the current CI setup.
For releases supporting older Rails versions such as 4.2-5.1 please check out the 3.x releases.
Add this line to your application's Gemfile:
gem 'modis'
And then execute:
$ bundle
Or install it yourself as:
$ gem install modis
class MyModel
include Modis::Model
attribute :name, :string
attribute :age, :integer
end
MyModel.create!(name: 'Ian', age: 28)
Modis, by default, creates an all
index in redis in which it stores all the IDs for records created. As a result, a large amount of memory will be consumed if many ids are stored. The all
index functionality can be turned off by using enable_all_index
class MyModel
include Modis::Model
enable_all_index false
end
By disabling the all
index functionality, the IDs of each record created won't be saved. As a side effect, using all
finder method will raise a IndexError
exception as we would not have enough information to fetch all records. See https://github.com/rpush/modis/pull/7 for more context.
TODO.
git checkout -b my-new-feature
)git commit -am 'Add some feature'
)git push origin my-new-feature
)FAQs
Unknown package
We found that modis demonstrated a healthy version release cadence and project activity because the last version was released less than 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.