Sha256: 395733a73d2c1d338fec0c1e68b273848dcd740010241c5c3dd5a3054bb0ae2f
Contents?: true
Size: 495 Bytes
Versions: 40
Compression:
Stored size: 495 Bytes
Contents
require 'rails/generators/migration' module TkhAuthentication module Generators class CreateOrUpdateLocalesGenerator < ::Rails::Generators::Base source_root File.expand_path('../templates', __FILE__) desc "copying latest version of locale files" def copy_locales puts 'creating locale files' I18n.available_locales.each do |l| copy_file "#{l.to_s}.yml", "config/locales/tkh_authentication.#{l.to_s}.yml" end end end end end
Version data entries
40 entries across 40 versions & 1 rubygems