mongoid_money_field 5.0.1 → 5.0.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e9afcb21a7fea8313402923450b0232818783799
4
- data.tar.gz: f615c0755fabe9b7a2cb456aea9fe0a696575250
3
+ metadata.gz: 2521a2542fc009767f20e3dc8f2fb6b6143f8f68
4
+ data.tar.gz: 731014b6971bac0af2740fe2348498c3a78c6bf7
5
5
  SHA512:
6
- metadata.gz: 009cf0e74b18f28afdc8db6d405d2b4007b1c13ce8fb1c161b1bf8b8658e2b24c1e8dac4e3223653502249e2afd401e0e4561a7836d05a08cede08ffafbe528d
7
- data.tar.gz: 711d61c738369b2b0f8c530987cb5c5fcdbdcd3ae12b5874fa311b38629949070ebdef89b1019f68492788c2430cade661e220c665218978b84701ff6558fd6c
6
+ metadata.gz: fa36333c3d91be248d625586436ce65f4e2d35b5490b99821b77d5c9e9f0b35a3408d997cd6147309a79539221ece2634fede2c8a24dfb8f3a5f637e89554bca
7
+ data.tar.gz: ffc2e9433337de286b55f6d3352a479dc90feccd330eee142d947fb18da1b1d76cb08baf974a955a7b5875e90725447dc4cfb56062e9a9f9bc68e029230d8ded
@@ -67,6 +67,10 @@ class MoneyType
67
67
  unless @options[:default_currency].nil?
68
68
  Money.default_currency = old_default
69
69
  end
70
+
71
+ if @options[:fixed_currency]
72
+ ret[:currency_iso] = @options[:fixed_currency]
73
+ end
70
74
 
71
75
  ret
72
76
  end
@@ -1,3 +1,3 @@
1
1
  module MongoidMoneyField
2
- VERSION = "5.0.1"
2
+ VERSION = "5.0.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mongoid_money_field
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.0.1
4
+ version: 5.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gleb Tv