lib/hyper-i18n/operations/translate.rb in hyper-i18n-1.0.alpha1.8 vs lib/hyper-i18n/operations/translate.rb in hyper-i18n-1.0.0.pre.alpha1
- old
+ new
@@ -4,10 +4,10 @@
param :attribute
param :opts
param :translation, default: nil
def opts
- params.opts.symbolize_keys
+ params.opts.with_indifferent_access
end
step do
params.translation = ::I18n.t(params.attribute, opts)
end