Module: Phlex::Rails::Helpers::Translate::ClassMethods

Defined in:
lib/phlex/rails/helpers/translate.rb

Instance Method Summary collapse

Instance Method Details

#translation_pathObject



5
6
7
8
9
10
11
# File 'lib/phlex/rails/helpers/translate.rb', line 5

def translation_path
	@translation_path ||= name&.dup.tap do |n|
		n.gsub!("::", ".")
		n.gsub!(/([a-z])([A-Z])/, '\1_\2')
		n.downcase!
	end
end