Sha256: b75502c38e60b941d7efc72841f845cf225d34c9011551e60aea7755cbb9dde3
Contents?: true
Size: 421 Bytes
Versions: 1
Compression:
Stored size: 421 Bytes
Contents
module SoMeta module Helper def so_meta(name) interpolation_data = instance_variable_get("@so_meta_#{name}_interpolation") || {} t("so_meta.#{controller_path.gsub(/\//, "_")}.#{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.3 | lib/so_meta/helper.rb |