You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
raiseArgumentError,":symbol_position must be ':before' or ':after'"
100
-
end
101
-
elsifcurrency.symbol_first?
102
-
:before
103
-
else
104
-
:after
105
-
end
106
-
end
107
-
108
-
defwarn_about_deprecated_rules(rules)
109
-
ifrules.has_key?(:symbol_position)
110
-
position=rules[:symbol_position]
111
-
template=position == :before ? '%u%n' : '%n%u'
112
-
113
-
warn"[DEPRECATION] `symbol_position: :#{position}` is deprecated - you can replace it with `format: #{template}`"
114
-
end
115
-
116
-
ifrules.has_key?(:symbol_before_without_space)
117
-
warn"[DEPRECATION] `symbol_before_without_space:` option is deprecated - you can replace it with `format: '%u%n'`"
118
-
end
119
-
120
-
ifrules.has_key?(:symbol_after_without_space)
121
-
warn"[DEPRECATION] `symbol_after_without_space:` option is deprecated - you can replace it with `format: '%n%u'`"
122
-
end
123
-
124
-
ifrules.has_key?(:html)
125
-
warn"[DEPRECATION] `html` is deprecated - use `html_wrap` instead. Please note that `html_wrap` will wrap all parts of currency and if you use `with_currency` option, currency element class changes from `currency` to `money-currency`."
126
-
end
127
-
128
-
ifrules.has_key?(:html_wrap_symbol)
129
-
warn"[DEPRECATION] `html_wrap_symbol` is deprecated - use `html_wrap` instead. Please note that `html_wrap` will wrap all parts of currency."
0 commit comments