- Use currency_column[:postfix] to automatically determine currency column.
- Replacing getter method with attr_reader.
- Support the
disambiguate
option on humanized_money helper. - Restore mongoid functionality on Rails < 4.0.
- Support multiple attributes w/ one call to
monetize
for AR. - Add
add_monetize
andremove_monetize
migration helpers, to fix a naming clash introduced by the Rails 4.2 Postgres adapter Use correct amount for validator when subunit is set directly. - Fix store_accessor compatibility.
- Use
public_send
instead ofsend
throughout themonetize
method.
- Fixing tests which were broken on Rails 4.2.
- Add Rails 4.2 spec and update money dependency to 6.5.0.
- Update dependencies to money 6.4.x and monetize 1.0.x.
- Make subunit setter (e.g.
#price_cents=
) set thebefore_type_cast...
va riable. (Fixes validation errors.) - use HashWithIndifferentAccess instead of Hash for ActiveRecord::Base::monetized_attributes
- Let the 'monetize' test helper work when testing against the model's class, as well as an instance of that class.
- Remove additional underscore in postfix comment
- Rescue UnknownCurrency within ActiveRecord
- Upgrade specs to RSpec 3
- Use #respond_to? instead of #try? when monetizing an aliased attribute.
- Allow aliased attributes to be monetized
- Fix compatability issue with Rails 4.2
- Allow empty string as thousands separator.
- Allow using a lambda to set default_currency
- Refactoring MoneyRails::ActiveModel::MoneyValidator#validate_each
- Update dependencies to money 6.2.x and monetize 0.4.x.
- Rescue from unknown currency errors on mongoization
- Add specs for Mongoize with invalid currency
- Add dedicated gemfiles and specs for Mongoid 3 and 4
- Show actual value of Money object in validation error message
- Add allow_nil chain for monetize test helper
- Add testing tasks for rails 4.1
- Helpers respect no_cents_if_whole configuration option (GH-157)
- Depend on Money gem version ~> 6.1.1
- Depend on monetize gem version ~> 0.3.0
- Set mongoized value of cents to float
- Fix validation error with whitespace between currency symbol and amount
- Add raise_error_on_money_parsing configuration option (default is false)
- Add rounding mode configuration option (default is ROUND_HALF_UP)
- Rescue ArgumentError with invalid values in mongoid (GH-114)
- Compatiblity between ActiveModel::Validations and MoneyValidator
- Raise error when trying to change model based currency
- Depend on Money gem version ~> 6.0.0
- Add disable_validation option for skipping validations on monetized attributes
- Remove implicit usage of 'currency' as a default currency column
- Options to humanized_money_with_symbol are passed to humanized_money
- Fix mongoization of Money when using infinite_precision
- Add testing tasks for rails 4.x
- Fix issue with Numeric values in MoneyValidator (GH-83).
- Fix test helper
- Fix issue with money validator (GH-102).
- Change validation logic. Support Subunit and Money field validation with NumericalityValidator options. Moreover, now Money objects are normalized and pass through all validation steps.
- Add support for the global configuration of the sign_before_setting formatting option.
- Remove unnecessary files from gem build.
- Add options to ActionView helpers that enable the usage of any of the rules ::Money.format allows.
- Fix "setting amount_column for default_currency" to only accept postfix for default_currency with subunit.
- Add mongoid 4 support.
- Added defaults for amount and currency columns in database schema, based on the default currency.
- Use a better default subunit_unit name (choose the value of column.postfix set in the config).
- Began support of Rails 4.
- Added global settings for money object formatted output (:no_cents_if_whole, :symbol options).
- Enhanced money validator.
- Added ability to use numericality validations on monetize (GH-70).
- Fixed error caused by ActiveSupport::HashWithIndifferentAccess (GH-62).
- Added money-rails test helper (rspec matcher).
- Fix error when instantiating new model in mongoid extension (GH-60)
- Added custom validator for Money fields (GH-36)
- Added mongodb service test support for travis CI
- Fixed issue with current value assignment in text_field tags (GH-37)
- Fixed concatination of subunit_name and name (to be just a joins) to prevent an infinite loop
- From now on MoneyRails is an Engine (not only a Railtie)! This means it can use all the extra stuff such as localized files, attached models etc.
- Updated Money dependency version (Now we depend on 5.1.x)
- Allow immediate subclasses to inherit monetized_attributes
- Stopped support for MRI < 1.9.2
- Fixed issue related to symbolized keys in Mongoid (GH-40)
- Added add_money/remove_money & t.money/t.remove_money methods for ActiveRecord migrations
- Added basic support for Mongoid >= 3.0.
- Allow class methods to be monetized (ActiveRecord only - GH-34)
- Refactored instance currency implementation. Now, instance currency is permitted to override the field currency, if they are both non-nil values. (GH-23)
- Replaced deprecated composed_of with a custom implementation for activerecord. (GH-20)
- Refactored testing structure to support multiple ORMs/ODMS.
- Added Mongoid 2.x basic support. It uses serialization (a differrent approach than activerecord for now). (GH-19)
- Provide ActionView helpers integration.
- Map blank value assignments (for monetized fields) to nil.
- Allow nil values for monetized fields. (GH-15)
- Reworked support for ORM adaptation. (GH-16)
- Fix bug with string assignment to monetized field. (GH-11)
- Add support for model-wise currency.
- Fix conversion of monetized attribute value, whether a currency table column exists or not.
- Add configuration options for currency exchange (config.add_rate, config.default_bank)
- Add new generator to install money.rb initializer
- Create a structure to enable better ORM/ODM integration
- Add configuration for numericality validation of monetized fields
- Add support for custom currency registration
- Use better names for args :target_name, :field_currency, :model_currency. From now on, :as, :with_currency and :with_model_currency should be used instead of the old ones which are deprecated. (GH-6)
- Hello World