Registry / database / mobility

mobility

JSON →
library1.3.2rbrubygemsunverified

Stores and retrieves localized data through attributes on a Ruby class, with flexible support for different storage strategies.

gem install mobility
INSTALL
IMPORT
SIG · MOBILITY
M
mobility
databaserubyv1.3.2
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.

Mobility
require 'mobility'

Define translatable attributes on a model and access them per locale.

require 'mobility' class Post extend Mobility translates :title, backend: :key_value end post = Post.new post.title = "Hello" post.title(:fr) = "Bonjour" puts post.title(:fr) # => "Bonjour"
Debug
Known issues

No known issues recorded.

Upgrade
Version history
1.3.2latest on RubyGems
Audit
Dependencies

No dependency data recorded yet.

Agent activity
9 hits · last 30 days
node
8
Resources
mobility — gem install mobility · libregistry