Sha256: 31ef76f685310fdcc4c8828237e4d0a79289f5af551b578c22113dc149a13d23
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.2 | lib/so_meta/helper.rb |