Sha256: 0ff81e1b3fbf20f447e273fb21c7c3c79206d707ab897839c7c239cf51175010
Contents?: true
Size: 313 Bytes
Versions: 4
Compression:
Stored size: 313 Bytes
Contents
module HyperI18n class Translate < Hyperstack::ServerOp param :acting_user, nils: true param :attribute param :opts param :translation, default: nil def opts params.opts.symbolize_keys end step do params.translation = ::I18n.t(params.attribute, opts) end end end
Version data entries
4 entries across 4 versions & 1 rubygems