Sha256: 855dd6858c11a666c735e5a4c06697f383daa1528b3cfbdcbc115f40e402bc9b
Contents?: true
Size: 413 Bytes
Versions: 20
Compression:
Stored size: 413 Bytes
Contents
require "baza_models" module ::AwesomeTranslations::ApplicationHelper include BazaModels::Helpers::RansackerHelper include BootstrapBuilders::ApplicationHelper include SimpleFormRansackHelper def path_without_root(path) path.gsub(/\A#{Regexp.escape(Rails.root.to_s)}(\/|)/, "") end def path_without_root_or_locales(path) path_without_root(path).gsub(/\Aconfig\/locales(\/|)/, "") end end
Version data entries
20 entries across 20 versions & 1 rubygems