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 [![Code Climate](https://codeclimate.com/github/zooppa/administrate-field-money/badges/gpa.svg)](https://codeclimate.com/github/zooppa/administrate-field-money) +[![Build Status](https://semaphoreci.com/api/v1/zooppa/administrate-field-money/branches/master/badge.svg)](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/