class Locale::HelperGenerator

Public Instance Methods

create_helper_file() click to toggle source
# File lib/generators/locale/helper/helper_generator.rb, line 14
def create_helper_file
  assert_valid_language!
  path = File.join("config/locales/#{language}/helpers", namespace_path, "#{file_name}.yml")

  template('helper.yml', path)
end