Sha256: 6c183158573150220330e4e843f38c6b07297d80f73c24e9bfc2994eeaa9e3b8
Contents?: true
Size: 373 Bytes
Versions: 5
Compression:
Stored size: 373 Bytes
Contents
module YahooWeather module Generators class CopyLocaleGenerator < Rails::Generators::Base source_root File.expand_path(__FILE__) argument :locale, type: :string, default: 'en' def copy_locale copy_file "../../../../config/locales/#{locale.underscore}.yml", "config/locales/yahoo_weather.#{locale.underscore}.yml" end end end end
Version data entries
5 entries across 5 versions & 1 rubygems