Sha256: b38318f0a79e4d3b12029573ec89e697cf66470fe2db03402f2b5d07d50dcaa9
Contents?: true
Size: 405 Bytes
Versions: 1
Compression:
Stored size: 405 Bytes
Contents
module SoMeta module Helper def so_meta(name) interpolation_data = instance_variable_get("@so_meta_#{name}_interpolation") || {} t("so_meta.#{controller_name}.#{action_name}.#{name}", interpolation_data.merge(default: t("so_meta.defaults.#{name}"))) end def so_meta_interpolation(name, hash) instance_variable_set("@so_meta_#{name}_interpolation", hash) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
so_meta-0.1 | lib/so_meta/helper.rb |