Registry / database / lookup-by

lookup-by

JSON →
library0.12.0rbrubygemsunverified

Use database lookup tables in AR models.

gem install lookup_by
INSTALL
IMPORT
SIG · LOOKUP-BY
L
lookup-by
databaserubyv0.12.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.

LookupBy
require 'lookup_by'

Define and use lookup tables in ActiveRecord models

require 'lookup_by' class User < ActiveRecord::Base lookup_by :role end User.lookup(:admin)
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.12.0latest on RubyGems
Audit
Dependencies

No dependency data recorded yet.

Agent activity
29 hits · last 30 days
node
24
Amazon
1
Resources
lookup-by — gem install lookup-by · libregistry