README.md in administrate-field-money-0.0.6 vs README.md in administrate-field-money-0.1.0
- old
+ new
@@ -1,8 +1,9 @@
# Administrate::Field::Money
[](https://codeclimate.com/github/zooppa/administrate-field-money)
+[](https://semaphoreci.com/zooppa/administrate-field-money)
A plugin to deal with money in [Administrate], with the help of [Money] gem.
**Attribute must be in cents**.
@@ -11,11 +12,11 @@
## Usage
Add it to your `Gemfile`:
```ruby
-gem 'administrate-field-money', '~> 0.0.5'
+gem 'administrate-field-money', '~> 0.1.0'
```
Run:
```bash
@@ -25,21 +26,22 @@
Add to your `FooDashboard`:
```ruby
ATTRIBUTE_TYPES = {
bar: Field::Money.with_options(
- unit: 'USD', # EUR, CAD, GBP, AUD, JPY, ...
+ code: 'USD', # EUR, CAD, GBP, AUD, JPY, ...
symbol: '$',
delimiter: ',',
separator: '.'
),
}.freeze
```
+
The field will figure out the appropriate thousand separator and decimal delimiter for the unit.
## About
-Administrate::Field::Money is maintained by [z.productions].
+Administrate::Field::Money is maintained by [Zooppa].
-[Administrate]: https://github.com/thoughtbot/administrate
-[Money]: https://github.com/RubyMoney/money
-[z.productions]: https://www.z.productions/
+[administrate]: https://github.com/thoughtbot/administrate
+[money]: https://github.com/RubyMoney/money
+[zooppa]: https://www.zooppa.com/