Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/valiot/administrate-field-time
A plugin to show time attributes within Administrate.
https://github.com/valiot/administrate-field-time
administrate time-field
Last synced: about 2 months ago
JSON representation
A plugin to show time attributes within Administrate.
- Host: GitHub
- URL: https://github.com/valiot/administrate-field-time
- Owner: valiot
- License: mit
- Created: 2017-05-08T14:43:24.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-06-08T20:58:37.000Z (over 7 years ago)
- Last Synced: 2024-10-20T20:31:35.912Z (2 months ago)
- Topics: administrate, time-field
- Language: Ruby
- Size: 8.79 KB
- Stars: 0
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Administrate::Field::Time
A plugin to show time attributes in [Administrate].
This repository is the first field plugin extracted out of Administrate.
Although its structure may change,
it's designed to act as a template for other Administrate field plugins.## FAQs
**Q: How should I name my gem?**
A: Administrate field gems must be named according to the [Rubygems naming guidelines].
Essentially, name your gem after the field class that it defines.
If there's a namespace in the class name, that gets translated to a dash (`-`) in the gem name.
If the class name is CamelCased, that translates to an underscore (`_`) in the gem name.Since all administrate field gems are under the namespace `Administrate::Field`,
every field gem name should start with the prefix `administrate-field-`.Here are some examples (these don't correspond to actual gems):
| Gem Name | Field Name |
|----------------------------|------------------------------|
| `administrate-field-enum` | `Administrate::Field::Enum` |
| `administrate-field-file_upload` | `Administrate::Field::FileUpload` |
| `administrate-field-geocoding-region` | `Administrate::Field::Geocoding::Region` |
| `administrate-field-geocoding-geo_json` | `Administrate::Field::Geocoding::GeoJson` |[Rubygems naming guidelines]: http://guides.rubygems.org/name-your-gem/
[Administrate]: https://github.com/thoughtbot/administrate