Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

rom-model

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rom-model

  • 0.5.0
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

rom-model

Gem Version Build Status Dependency Status Code Climate Test Coverage Inline docs

This is a set of extensions for PORO objects to help in data coercion and validation. It was extracted from rom-rails and for now it uses Virtus and ActiveModel.

The package includes:

  • ROM::Attributes for defining input attributes with types and coercion rules
  • ROM::Validator a standalone validator object extension built on top of ActiveModel::Validations with additional features like nested validators

Future Plans

It is very likely this gem will be deprecated. For now please consider using dry-validation along with dry-types instead of rom-model. We may integrate rom-model with these libs to provide persistence-related features for dry-validation, or just abandon rom-model completely. Time will tell.

Installation

Add this line to your application's Gemfile:

gem 'rom-model'

And then execute:

$ bundle

Or install it yourself as:

$ gem install rom-model

License

See LICENSE file.

FAQs

Package last updated on 30 Jan 2017

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc