No release in over 3 years
Low commit activity in last 3 years
Mobility string field plugin for Administrate
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 3.4

Runtime

>= 0.13.0, ~> 0.13
 Project Readme

Administrate::Field::Mobility

Gem Version

Warning

This gem is under early development.

This Administrate plugin adds support for string fields that use the Mobility gem to hold translated values.

Requirements in Mobility

Set locale_accessors to true in config/initializers/mobility

  config.default_options[:locale_accessors] = true

Getting Started

Add Administrate::Field::Mobility gems to your Gemfile:

gem "administrate-field-mobility", "0.0.1"

Add the Administrate Mobility Field to your dashboard.

  ATTRIBUTE_TYPES = {
    created_at: Field::DateTime,
    update_at: Field::DateTime,
    name: Field::Mobility::String,
    description: Field::Mobility::Text,
  }.freeze

Credits

This gem is inspired by administrate-field-globalize