Sha256: 01e66ed3353110981eff0e709938a4c06e1ba4a3ef7e85b82092b5b1aff2f738

Contents?: true

Size: 875 Bytes

Versions: 2

Compression:

Stored size: 875 Bytes

Contents

# Administrate::Field::Globalize

## Warning
This gem is under early development and overrides Administrate search functions.

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

Requirements in Globalize
----------------------

You need to install the accessors for easy access to the translations.

```ruby
gem "globalize-accessors"
```

Add the helper to your translated models.

```ruby
  globalize_accessors locales: I18n.available_locales
```

Getting Started
----------------------

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

```ruby
gem "administrate-field-globalize", "0.0.1.alpha1"
```

Add the Administrate Globalize Field to your dashboard.

```ruby
  ATTRIBUTE_TYPES = {
    created_at: Field::DateTime,
    update_at: Field::DateTime,
    name: Field::Globalize::String,
  }.freeze
```

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
administrate-field-globalize-0.0.1.alpha3 README.md
administrate-field-globalize-0.0.1.alpha1 README.md