Registry / database / ohm-contrib

ohm-contrib

JSON →
library3.0.0rbrubygemsunverified

Ohm Contrib includes core functions such as callbacks, timestamping, typecasting, and generic validation routines for Ohm models.

gem install ohm-contrib
INSTALL
IMPORT
SIG · OHM-CONTRIB
O
ohm-contrib
databaserubyv3.0.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Ohm::Contrib
require 'ohm-contrib'

Use Ohm Contrib to add callbacks and timestamps to an Ohm model

require 'ohm-contrib' class User < Ohm::Model include Ohm::Callbacks include Ohm::Timestamps attribute :name before :create do self.name = name.strip end end user = User.create(name: ' John ') puts user.name # => "John"
Debug
Known issues

No known issues recorded.

Upgrade
Version history
3.0.0latest on RubyGems
Audit
Dependencies

No dependency data recorded yet.

Agent activity
29 hits · last 30 days
node
26
Resources
ohm-contrib — gem install ohm-contrib · libregistry